Read about our upcoming Code of Conduct on this issue

Unverified Commit b340ca35 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Remove User#tm_in_authorized_projects and User#tm_of



These methods seems to be unused.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent a628f8b8e7a9
......@@ -397,11 +397,6 @@ def owned_projects
owned_groups.select(:id), namespace.id).joins(:namespace)
end
# Team membership in authorized projects
def tm_in_authorized_projects
ProjectMember.where(source_id: authorized_projects.map(&:id), user_id: self.id)
end
def is_admin?
admin
end
......@@ -491,10 +486,6 @@ def name_with_username
"#{name} (#{username})"
end
def tm_of(project)
project.project_member_by_id(self.id)
end
def already_forked?(project)
!!fork_of(project)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment