From fc27b03ac8f7cf36d24a271a5e54d7b8661ac90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Tue, 13 Feb 2024 19:54:53 +0100 Subject: [PATCH] Prune old decorator --- mwdb/resources/__init__.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/mwdb/resources/__init__.py b/mwdb/resources/__init__.py index b5e1850b9..f8fbf94a1 100644 --- a/mwdb/resources/__init__.py +++ b/mwdb/resources/__init__.py @@ -2,7 +2,7 @@ from functools import wraps from json import JSONDecodeError -from flask import g, request +from flask import g from marshmallow import EXCLUDE, ValidationError from werkzeug.exceptions import BadRequest, Forbidden, NotFound, Unauthorized @@ -49,19 +49,6 @@ def endpoint(*args, **kwargs): return endpoint -def deprecated(f): - """ - Decorator for deprecated methods - """ - - @wraps(f) - def endpoint(*args, **kwargs): - logger.debug("Used deprecated endpoint: %s", request.path) - return f(*args, **kwargs) - - return endpoint - - def get_type_from_str(s): object_types = {"object": Object, "file": File, "config": Config, "blob": TextBlob} if s not in object_types: