diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-19 16:04:00 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-22 11:12:18 +0200 |
commit | 690d19db1eaeb56ade5debd5305a15f73813ec51 (patch) | |
tree | 0b49a321dd053ebf879d0586bf053ecc41e872f9 /app | |
parent | 29cb161e925f787624e7c6b7bdfdeb4d2462c43a (diff) | |
download | gitlab-ce-690d19db1eaeb56ade5debd5305a15f73813ec51.tar.gz |
Remove duplicate methods
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/models/group.rb | 4 | ||||
-rw-r--r-- | app/models/project.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 194fa1ffa69..aefb94b2ada 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -102,10 +102,6 @@ class Group < Namespace self[:lfs_enabled] end - def request_access(user) - Members::RequestAccessService.new(self, user).execute - end - def add_users(user_ids, access_level, current_user: nil, expires_at: nil) user_ids.each do |user_id| Member.add_user( diff --git a/app/models/project.rb b/app/models/project.rb index 35e1d1a25a8..7265cb55594 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1012,10 +1012,6 @@ class Project < ActiveRecord::Base update_all(updated_at: Time.now) end - def request_access(user) - Members::RequestAccessService.new(self, user).execute - end - def project_member(user) project_members.find_by(user_id: user) end |