Skip to content

Commit

Permalink
Remove unused User.get_by_username_or_email
Browse files Browse the repository at this point in the history
  • Loading branch information
nickstenning committed Jun 15, 2015
1 parent 08a4d9e commit 109059d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions h/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,6 @@ def get_by_username(cls, username):
uid = _username_to_uid(username)
return cls.query.filter(cls.uid == uid).first()

@classmethod
def get_by_username_or_email(cls, request, username, email):
uid = _username_to_uid(username)
return cls.query.filter(
or_(
cls.uid == uid,
cls.email == email
)
).first()

# TODO: remove all this status bitfield stuff
@property
def email_confirmed(self):
Expand Down

0 comments on commit 109059d

Please sign in to comment.