summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-05-30 23:24:17 +0200
committerToon Claes <toon@gitlab.com>2017-05-30 23:24:17 +0200
commit1e5506d01619780da68fc51ada58188a9070255b (patch)
treeb26383b07e7e4c279299e90d99d1b04804c49130 /app/models/project.rb
parentdb679788e46d55984a4af71034c6db11aed919e4 (diff)
downloadgitlab-ce-tc-improve-project-api-perf.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/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 963fd594d46..457399cb60e 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -351,10 +351,6 @@ class Project < ActiveRecord::Base
where("projects.id IN (#{union.to_sql})")
end
- def search_by_visibility(level) # DEPRECATED: remove with API V3
- where(visibility_level: Gitlab::VisibilityLevel.string_options[level])
- end
-
def search_by_title(query)
pattern = "%#{query}%"
table = Project.arel_table