From b317249918be1570299001f9eaabe564180b6f5d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 19 May 2017 00:10:01 +0200 Subject: [PATCH] Remove unused functions. --- accountant/views/users.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/accountant/views/users.py b/accountant/views/users.py index e92f613..f7489ad 100644 --- a/accountant/views/users.py +++ b/accountant/views/users.py @@ -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')