refactor: remove dead code from anime and auth packages

This commit is contained in:
2026-05-12 12:34:38 +02:00
parent 6e4fdf6314
commit fc1726d1fd
3 changed files with 0 additions and 27 deletions

View File

@@ -17,14 +17,6 @@ func NewHandler(authService *Service) *Handler {
return &Handler{authService: authService}
}
// rateLimitErrorFromQuery checks for rate limit errors in the query string
func rateLimitErrorFromQuery(r *http.Request) string {
if r.URL.Query().Get("error") == "rate_limited" {
return rateLimitFormError
}
return ""
}
// HandleLoginPage renders the login form
func (h *Handler) HandleLoginPage(w http.ResponseWriter, r *http.Request) {
if err := templates.GetRenderer().ExecuteTemplate(r.Context(), w, "login.gohtml", map[string]any{