Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-09-11 07:37:44 +0300
committerMark Chao <mchao@gitlab.com>2018-10-30 10:44:55 +0300
commitbc14e4ed1024efa1e0a411bd59e1339fb1af20c0 (patch)
tree249ac6ce57b9758d3472dd4b1319527636b72f44 /lib/gitlab/search_results.rb
parent39ae9a59a59615092fbef189466f37c34f4a7fb1 (diff)
Move :plain option to Highlight class
This is to DRY the repeated file size check. Move spec and constants to Highlight
Diffstat (limited to 'lib/gitlab/search_results.rb')
-rw-r--r--lib/gitlab/search_results.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb
index 3dbb0608a4f..6c86ad11385 100644
--- a/lib/gitlab/search_results.rb
+++ b/lib/gitlab/search_results.rb
@@ -23,10 +23,6 @@ module Gitlab
filename
end
- def no_highlighting?
- false
- end
-
# Since search results often contain many items,
# not triggering lookup can avoid n+1 queries.
def language_from_gitattributes