Commit 8ad8252c authored by Kerri Miller's avatar Kerri Miller

Remove unused code

parent 3fa823e3
......@@ -3,10 +3,6 @@
module Gitlab
module Diff
class HighlightCache
# TODO: copied from lib/gitlab/discussions_diff/highlight_cache.rb
# extract into shared module?
#
VERSION = 1
EXPIRATION = 1.week
delegate :diffable, to: :@diff_collection
......@@ -116,20 +112,6 @@ module Gitlab
def cacheable?(diff_file)
diffable.present? && diff_file.text? && diff_file.diffable?
end
# TODO: copied from lib/gitlab/discussions_diff/highlight_cache.rb
# extract into shared module?
#
def cache_key_for(raw_key)
"#{cache_key_prefix}:#{raw_key}"
end
# TODO: copied from lib/gitlab/discussions_diff/highlight_cache.rb
# extract into shared module?
#
def cache_key_prefix
"#{Redis::Cache::CACHE_NAMESPACE}:#{VERSION}:diff-highlight"
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment