aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/handler/useflags/index.go')
-rw-r--r--pkg/app/handler/useflags/index.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/pkg/app/handler/useflags/index.go b/pkg/app/handler/useflags/index.go
deleted file mode 100644
index d08d62b..0000000
--- a/pkg/app/handler/useflags/index.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Used to display the landing page of the USE flag section
-
-package useflags
-
-import (
- "net/http"
- "soko/pkg/app/utils"
-)
-
-// Index renders a template to show the index page of the USE flags
-// section containing a bubble chart of popular USE flags
-func Default(w http.ResponseWriter, r *http.Request) {
- userPreferences := utils.GetUserPreferences(r)
- if userPreferences.Useflags.Layout == "bubble" {
- http.Redirect(w, r, "/useflags/popular", http.StatusSeeOther)
- } else {
- http.Redirect(w, r, "/useflags/search", http.StatusSeeOther)
- }
-}