diff options
-rw-r--r-- | src/guff/apis.cr | 7 | ||||
-rw-r--r-- | src/guff/models/site.cr | 20 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/guff/apis.cr b/src/guff/apis.cr index 5449c72..7b22130 100644 --- a/src/guff/apis.cr +++ b/src/guff/apis.cr @@ -251,13 +251,6 @@ module Guff::APIs nil end - -# -# def do_site_set_default(params : HTTP::Params) -# @context.models.site.set(params["site_id"].to_i64) -# nil -# end -# end module FileAPI diff --git a/src/guff/models/site.cr b/src/guff/models/site.cr index 9eaed1a..b3e93b3 100644 --- a/src/guff/models/site.cr +++ b/src/guff/models/site.cr @@ -142,13 +142,6 @@ class Guff::Models::SiteModel < Guff::Models::Model ? ) ", - -# -# set_default: " -# UPDATE sites -# SET is_default = (site_id = ?) -# ", -# } def get_id(host : String?) : Int64? @@ -363,17 +356,4 @@ class Guff::Models::SiteModel < Guff::Models::Model nil end - -# -# def set_default(site_id : Int64) -# db = @context.dbs.rw -# -# db.transaction do -# db.query(SQL[:set_default], [site_id.to_s]) -# get_default_id -# end -# -# nil -# end -# end |