summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/handlers.go5
-rw-r--r--internal/handlers/handlers_test.go15
2 files changed, 0 insertions, 20 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index fc66f84..fc75b61 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -1262,11 +1262,6 @@ func mealTypeOrder(mealType string) int {
}
}
-// HandleTabConditions renders the Conditions tab with live feeds
-func (h *Handler) HandleTabConditions(w http.ResponseWriter, r *http.Request) {
- HTMLResponse(w, h.renderer, "conditions-tab", nil)
-}
-
// HandleConditionsPage renders the standalone Conditions page with live feeds
func (h *Handler) HandleConditionsPage(w http.ResponseWriter, r *http.Request) {
if err := h.renderer.Render(w, "conditions.html", nil); err != nil {
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go
index 93afba5..ca24778 100644
--- a/internal/handlers/handlers_test.go
+++ b/internal/handlers/handlers_test.go
@@ -1320,21 +1320,6 @@ func TestParseFormOr400(t *testing.T) {
// Timeline and Conditions Handler Tests
// =============================================================================
-func TestHandleTabConditions(t *testing.T) {
- h, cleanup := setupTestHandler(t)
- defer cleanup()
-
- req := httptest.NewRequest("GET", "/tabs/conditions", nil)
- w := httptest.NewRecorder()
-
- h.HandleTabConditions(w, req)
-
- // May return 500 if template not found, but the handler is executed
- if w.Code != http.StatusOK && w.Code != http.StatusInternalServerError {
- t.Errorf("Expected status 200 or 500, got %d", w.Code)
- }
-}
-
func TestHandleConditionsPage(t *testing.T) {
h, cleanup := setupTestHandler(t)
defer cleanup()