From 9cec164e724465c11ff91772cdad3126de663ade Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 30 Jul 2016 15:10:49 -0400 Subject: remove site.set_default --- src/guff/apis.cr | 7 ------- src/guff/models/site.cr | 20 -------------------- 2 files changed, 27 deletions(-) (limited to 'src') 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 -- cgit v1.2.3