Commit 702133c0e2ff1e9a70263ad9c01985a6279cb2db

Authored by Robert Speicher
1 parent cda5e66d

Remove unused history_path instance variable

app/controllers/refs_controller.rb
@@ -54,10 +54,8 @@ class RefsController < ProjectResourceController @@ -54,10 +54,8 @@ class RefsController < ProjectResourceController
54 @hex_path = Digest::SHA1.hexdigest(params[:path] || "") 54 @hex_path = Digest::SHA1.hexdigest(params[:path] || "")
55 55
56 if params[:path] 56 if params[:path]
57 - @history_path = project_tree_path(@project, File.join(@ref, params[:path]))  
58 @logs_path = logs_file_project_ref_path(@project, @ref, params[:path]) 57 @logs_path = logs_file_project_ref_path(@project, @ref, params[:path])
59 else 58 else
60 - @history_path = project_tree_path(@project, @ref)  
61 @logs_path = logs_tree_project_ref_path(@project, @ref) 59 @logs_path = logs_tree_project_ref_path(@project, @ref)
62 end 60 end
63 rescue 61 rescue
app/controllers/tree_controller.rb
@@ -10,10 +10,8 @@ class TreeController < ProjectResourceController @@ -10,10 +10,8 @@ class TreeController < ProjectResourceController
10 before_filter :assign_ref_vars 10 before_filter :assign_ref_vars
11 11
12 def show 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 respond_to do |format| 16 respond_to do |format|
19 format.html 17 format.html