Commit 9c1deaf9 authored by Ruben Davila's avatar Ruben Davila

Remove duplicate method

It was giving errors with Rubocop.
parent ef7ca3c7
......@@ -1563,21 +1563,6 @@ class Project < ActiveRecord::Base
@route_maps_by_commit[commit_sha]
end
def route_map_for(commit_sha)
@route_maps_by_commit ||= Hash.new do |h, sha|
h[sha] = begin
data = repository.route_map_for(sha)
next unless data
Gitlab::RouteMap.new(data)
rescue Gitlab::RouteMap::FormatError
nil
end
end
@route_maps_by_commit[commit_sha]
end
def public_path_for_source_path(path, commit_sha)
map = route_map_for(commit_sha)
return unless map
......
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