diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 13:11:43 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-26 13:11:43 +0400 |
commit | 15c0e58a49d623a0f8747e1d7e74364324eeb79f (patch) | |
tree | df57e84151a962b55474141cbcdbdd07e6440059 /app/models/project_team.rb | |
parent | c08f19f275182a24fa675c31d630126c75b50af9 (diff) |
remove unused code related to gitolite
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r-- | app/models/project_team.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb index c2cf83c0ca8..f3e5c0e5354 100644 --- a/app/models/project_team.rb +++ b/app/models/project_team.rb @@ -66,28 +66,6 @@ class ProjectTeam members.masters.map(&:user) end - def repository_readers - repository_members[UsersProject::REPORTER] - end - - def repository_writers - repository_members[UsersProject::DEVELOPER] - end - - def repository_masters - repository_members[UsersProject::MASTER] - end - - def repository_members - keys = Hash.new {|h,k| h[k] = [] } - UsersProject.select("keys.identifier, project_access"). - joins(user: :keys).where(project_id: project.id). - each {|row| keys[row.project_access] << [row.identifier] } - - keys[UsersProject::REPORTER] += project.deploy_keys.pluck(:identifier) - keys - end - def import(source_project) target_project = project |