This instance will be upgraded to Heptapod 0.31.0rc on 2022-05-19 at 11:00 UTC+2 (a few minutes of down time)

Commit f3d52f82 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch '17628-remove-unused-methods' into 'master'



Remove User#tm_in_authorized_projects and User#tm_of

These methods seems to be unused.

Closes #17628.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>

See merge request !4198
......@@ -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