summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-09-19 16:04:00 +0200
committerRémy Coutable <remy@rymai.me>2016-09-22 11:12:18 +0200
commit690d19db1eaeb56ade5debd5305a15f73813ec51 (patch)
tree0b49a321dd053ebf879d0586bf053ecc41e872f9 /app
parent29cb161e925f787624e7c6b7bdfdeb4d2462c43a (diff)
downloadgitlab-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.rb4
-rw-r--r--app/models/project.rb4
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