Skip to content

Commit

Permalink
Removed the unused function create_user.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Dec 18, 2017
1 parent cb4645f commit cd9783e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/galaxy/authnz/psa_authnz.py
Expand Up @@ -231,22 +231,6 @@ def is_integrity_error(cls, exception):
return exception.__class__ is IntegrityError


def create_user(strategy, details, backend, user=None, *args, **kwargs):
print '\n\n', '@' * 50
if user:
return {'is_new': False}

fields = dict((name, kwargs.get(name, details.get(name)))
for name in backend.setting('USER_FIELDS', USER_FIELDS))
if not fields:
return

return {
'is_new': True,
'user': strategy.create_user(**fields)
}


def allowed_to_disconnect(name=None, user=None, user_storage=None, strategy=None,
backend=None, request=None, details=None, **kwargs):
"""
Expand Down

0 comments on commit cd9783e

Please sign in to comment.