Commit 702133c0e2ff1e9a70263ad9c01985a6279cb2db
1 parent
cda5e66d
Exists in
master
and in
4 other branches
Remove unused history_path instance variable
Showing
2 changed files
with
2 additions
and
6 deletions
Show diff stats
app/controllers/refs_controller.rb
| ... | ... | @@ -54,10 +54,8 @@ class RefsController < ProjectResourceController |
| 54 | 54 | @hex_path = Digest::SHA1.hexdigest(params[:path] || "") |
| 55 | 55 | |
| 56 | 56 | if params[:path] |
| 57 | - @history_path = project_tree_path(@project, File.join(@ref, params[:path])) | |
| 58 | 57 | @logs_path = logs_file_project_ref_path(@project, @ref, params[:path]) |
| 59 | 58 | else |
| 60 | - @history_path = project_tree_path(@project, @ref) | |
| 61 | 59 | @logs_path = logs_tree_project_ref_path(@project, @ref) |
| 62 | 60 | end |
| 63 | 61 | rescue | ... | ... |
app/controllers/tree_controller.rb
| ... | ... | @@ -10,10 +10,8 @@ class TreeController < ProjectResourceController |
| 10 | 10 | before_filter :assign_ref_vars |
| 11 | 11 | |
| 12 | 12 | def show |
| 13 | - @hex_path = Digest::SHA1.hexdigest(@path) | |
| 14 | - | |
| 15 | - @history_path = project_tree_path(@project, @id) | |
| 16 | - @logs_path = logs_file_project_ref_path(@project, @ref, @path) | |
| 13 | + @hex_path = Digest::SHA1.hexdigest(@path) | |
| 14 | + @logs_path = logs_file_project_ref_path(@project, @ref, @path) | |
| 17 | 15 | |
| 18 | 16 | respond_to do |format| |
| 19 | 17 | format.html | ... | ... |