Skip to content

Commit

Permalink
Prune old decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Feb 13, 2024
1 parent 6896924 commit fc27b03
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions mwdb/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fc27b03

Please sign in to comment.