From 702133c0e2ff1e9a70263ad9c01985a6279cb2db Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Tue, 9 Oct 2012 18:33:22 -0400 Subject: [PATCH] Remove unused history_path instance variable --- app/controllers/refs_controller.rb | 2 -- app/controllers/tree_controller.rb | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index 6a1a360..977ccea 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -54,10 +54,8 @@ class RefsController < ProjectResourceController @hex_path = Digest::SHA1.hexdigest(params[:path] || "") if params[:path] - @history_path = project_tree_path(@project, File.join(@ref, params[:path])) @logs_path = logs_file_project_ref_path(@project, @ref, params[:path]) else - @history_path = project_tree_path(@project, @ref) @logs_path = logs_tree_project_ref_path(@project, @ref) end rescue diff --git a/app/controllers/tree_controller.rb b/app/controllers/tree_controller.rb index 2e4ff7d..2270eed 100644 --- a/app/controllers/tree_controller.rb +++ b/app/controllers/tree_controller.rb @@ -10,10 +10,8 @@ class TreeController < ProjectResourceController before_filter :assign_ref_vars def show - @hex_path = Digest::SHA1.hexdigest(@path) - - @history_path = project_tree_path(@project, @id) - @logs_path = logs_file_project_ref_path(@project, @ref, @path) + @hex_path = Digest::SHA1.hexdigest(@path) + @logs_path = logs_file_project_ref_path(@project, @ref, @path) respond_to do |format| format.html -- libgit2 0.21.2