From ae201cf1af12132ed5aed3c180bcb785dee85621 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 2 Jan 2017 12:41:51 -0800 Subject: minor cleanup, removal of old code --- system/admin/handlers.go | 4 ---- system/admin/server.go | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 1ff7156..efcb449 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -734,10 +734,6 @@ func recoveryKeyHandler(res http.ResponseWriter, req *http.Request) { } } -func recoveryEditHandler(res http.ResponseWriter, req *http.Request) { - -} - func contentsHandler(res http.ResponseWriter, req *http.Request) { q := req.URL.Query() t := q.Get("type") diff --git a/system/admin/server.go b/system/admin/server.go index b99ec37..155892a 100644 --- a/system/admin/server.go +++ b/system/admin/server.go @@ -22,7 +22,6 @@ func Run() { http.HandleFunc("/admin/recover", forgotPasswordHandler) http.HandleFunc("/admin/recover/key", recoveryKeyHandler) - http.HandleFunc("/admin/recover/edit", recoveryEditHandler) http.HandleFunc("/admin/configure", user.Auth(configHandler)) http.HandleFunc("/admin/configure/users", user.Auth(configUsersHandler)) @@ -39,7 +38,7 @@ func Run() { pwd, err := os.Getwd() if err != nil { - log.Fatal("Couldn't find current directory for file server.") + log.Fatalln("Couldn't find current directory for file server.") } staticDir := filepath.Join(pwd, "cmd", "ponzu", "vendor", "github.com", "ponzu-cms", "ponzu", "system") -- cgit v1.2.3