From 3ad56306bf189d2d78daeff8fa8fa2a1cd569fb4 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Tue, 16 Sep 2025 20:59:35 -0400 Subject: [PATCH] remove unused funcs from TitleServlet --- core/title.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/core/title.py b/core/title.py index 9165628..d8825b9 100644 --- a/core/title.py +++ b/core/title.py @@ -149,41 +149,3 @@ class TitleServlet: self.logger.info( f"Serving {len(self.title_registry)} game codes {'on port ' + str(core_cfg.server.port) if core_cfg.server.port > 0 else ''}" ) - - def render_GET(self, request: Request, endpoints: dict) -> bytes: - code = endpoints["title"] - subaction = endpoints['subaction'] - - if code not in self.title_registry: - self.logger.warning(f"Unknown game code {code}") - request.setResponseCode(404) - return b"" - - index = self.title_registry[code] - handler = getattr(index, f"{subaction}", None) - if handler is None: - self.logger.error(f"{code} does not have handler for GET subaction {subaction}") - request.setResponseCode(500) - return b"" - - return handler(request, code, endpoints) - - def render_POST(self, request: Request, endpoints: dict) -> bytes: - code = endpoints["title"] - subaction = endpoints['subaction'] - - if code not in self.title_registry: - self.logger.warning(f"Unknown game code {code}") - request.setResponseCode(404) - return b"" - - index = self.title_registry[code] - handler = getattr(index, f"{subaction}", None) - if handler is None: - self.logger.error(f"{code} does not have handler for POST subaction {subaction}") - request.setResponseCode(500) - return b"" - - endpoints.pop("title") - endpoints.pop("subaction") - return handler(request, code, endpoints)