diff options
author | Toon Claes <toon@gitlab.com> | 2017-05-30 23:24:17 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-05-30 23:24:17 +0200 |
commit | 1e5506d01619780da68fc51ada58188a9070255b (patch) | |
tree | b26383b07e7e4c279299e90d99d1b04804c49130 /app/models/user.rb | |
parent | db679788e46d55984a4af71034c6db11aed919e4 (diff) | |
download | gitlab-ce-1e5506d01619780da68fc51ada58188a9070255b.tar.gz |
Remove some deprecated methodstc-improve-project-api-perf
To avoid the use of slow queries, remove some deprecated methods and encourage
the use of ProjectFinder to find projects.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 20894ce269a..9aad327b592 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -557,12 +557,6 @@ class User < ActiveRecord::Base authorized_projects(Gitlab::Access::REPORTER).where(id: projects) end - def viewable_starred_projects # DEPRECATED: Use ProjectFinder instead. Remove together with API V3 - starred_projects.where("projects.visibility_level IN (?) OR projects.id IN (?)", - [Project::PUBLIC, Project::INTERNAL], - authorized_projects.select(:project_id)) - end - def owned_projects @owned_projects ||= Project.where('namespace_id IN (?) OR namespace_id = ?', |