Remove unused functions.

This commit is contained in:
Alexis Lahouze 2017-05-19 00:10:01 +02:00
parent 5b1e3873e3
commit b317249918

View File

@ -10,19 +10,6 @@ from flask_restplus import Namespace, Resource, fields
from ..models.users import User
def load_user_from_token(token):
"""Load user from token."""
return User.verify_auth_token(token)
def load_user_from_auth(auth):
"""Load a user from authenticated session."""
token = auth.replace('Bearer ', '', 1)
return load_user_from_token(token)
# pylint: disable=invalid-name
ns = Namespace('user', description='User management')