aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-30 15:10:49 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-30 15:10:49 -0400
commit9cec164e724465c11ff91772cdad3126de663ade (patch)
treed08ad67b929c24351f5dea15ef641aa4001f0e99 /src
parent0557ef64e2bd1161fd98a5dff6e45aea8e0d7567 (diff)
downloadguff-9cec164e724465c11ff91772cdad3126de663ade.tar.bz2
guff-9cec164e724465c11ff91772cdad3126de663ade.zip
remove site.set_default
Diffstat (limited to 'src')
-rw-r--r--src/guff/apis.cr7
-rw-r--r--src/guff/models/site.cr20
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