Remove unused code

This commit is contained in:
Joseph Schorr 2018-03-09 16:46:29 -05:00
parent 96fafcdffb
commit f1da3c452f
3 changed files with 0 additions and 40 deletions

View file

@ -137,19 +137,6 @@ class PreOCIModel(DockerRegistryV1DataInterface):
def delete_tag(self, namespace_name, repo_name, tag_name):
model.tag.delete_tag(namespace_name, repo_name, tag_name)
def load_token(self, token):
try:
model.token.load_token_data(token)
return True
except model.InvalidTokenException:
return False
def verify_robot(self, username, token):
try:
return bool(model.user.verify_robot(username, token))
except model.InvalidRobotException:
return False
def change_user_password(self, user, new_password):
model.user.change_password(user, new_password)