diff --git a/data/model.py b/data/model.py index a46ca1912..14c17ebf2 100644 --- a/data/model.py +++ b/data/model.py @@ -415,12 +415,6 @@ def delete_all_repository_tags(namespace_name, repository_name): RepositoryTag.delete().where(RepositoryTag.repository == repo) -def get_user_repo_permissions(user, repository): - select = RepositoryPermission.select() - return select.where(RepositoryPermission.user == user, - RepositoryPermission.repository == repository) - - def user_permission_repo_query(username, namespace_name, repository_name): selected = RepositoryPermission.select(User, Repository, Role, RepositoryPermission) @@ -554,14 +548,6 @@ def load_token_data(code): raise InvalidTokenException('Invalid delegate token code: %s' % code) -def get_repository_build(request_dbid): - try: - return RepositoryBuild.get(RepositoryBuild.id == request_dbid) - except RepositoryBuild.DoesNotExist: - msg = 'Unable to locate a build by id: %s' % request_dbid - raise InvalidRepositoryBuildException(msg) - - def list_repository_builds(namespace_name, repository_name, include_inactive=True): joined = RepositoryBuild.select().join(Repository)