From 75e41eafc4c705b6dc5e1d0e17e5589fc4b33939 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Mon, 16 Feb 2026 10:54:04 -0500 Subject: [PATCH] remove redundent code --- hbd/http.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hbd/http.py b/hbd/http.py index d1e2e12..1c8c635 100644 --- a/hbd/http.py +++ b/hbd/http.py @@ -131,13 +131,6 @@ async def start( out.append(f"update started for {n}: {err if err else 'OK'}") return web.Response(text="\n".join(out)) - async def restart(request): - # signal main application to perform restart if needed - # not implemented here - return OK - if log: - log(None, "restart request") - return web.Response(text="restart request") - async def live(request): # render template from hbd/templates/live.html using Jinja2 # Resolve templates directory relative to the hbd package @@ -200,7 +193,6 @@ async def start( web.get("/d", drop), web.get("/n", register), web.get("/u", update), - web.get("/r", restart), web.get("/live", live), web.get("/static/{path:.*}", static), web.get("/favicon.ico", favicon),