Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9c1deaf9
Commit
9c1deaf9
authored
Feb 07, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate method
It was giving errors with Rubocop.
parent
ef7ca3c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
app/models/project.rb
app/models/project.rb
+0
-15
No files found.
app/models/project.rb
View file @
9c1deaf9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment