From 1db6a0f89cb571e7d5654cc225729f2c30a41ea8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 23 Oct 2012 00:17:05 +0000 Subject: [PATCH] gantt: remove unused issues parameter from gantt_issue_compare method git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10698 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 39fdc5cde..398f8233f 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -638,11 +638,11 @@ module Redmine # Sorts a collection of issues by start_date, due_date, id for gantt rendering def sort_issues!(issues) - issues.sort! { |a, b| gantt_issue_compare(a, b, issues) } + issues.sort! { |a, b| gantt_issue_compare(a, b) } end # TODO: top level issues should be sorted by start date - def gantt_issue_compare(x, y, issues) + def gantt_issue_compare(x, y) if x.root_id == y.root_id x.lft <=> y.lft else