From ea7acd915c56e213c0e85d96e041da4fc2d053e7 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sun, 20 Nov 2022 22:41:51 -0700 Subject: [PATCH] Unused code. --- .../src/python/relay/misc.py | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/projects/activitypub_relay/src/python/relay/misc.py b/projects/activitypub_relay/src/python/relay/misc.py index 8c43a3b..20d67c6 100644 --- a/projects/activitypub_relay/src/python/relay/misc.py +++ b/projects/activitypub_relay/src/python/relay/misc.py @@ -487,35 +487,6 @@ class Response(AiohttpResponse): self.headers["Location"] = value -class View(AiohttpView): - async def _iter(self): - if self.request.method not in METHODS: - self._raise_allowed_methods() - - method = getattr(self, self.request.method.lower(), None) - - if method is None: - self._raise_allowed_methods() - - return await method(**self.request.match_info) - - @property - def app(self): - return self._request.app - - @property - def cache(self): - return self.app.cache - - @property - def config(self): - return self.app.config - - @property - def database(self): - return self.app.database - - class WKNodeinfo(DotDict): @classmethod def new(cls, v20, v21):