summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-23 00:17:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-23 00:17:05 +0000
commit1db6a0f89cb571e7d5654cc225729f2c30a41ea8 (patch)
tree19770867eba2df1217539d512087c702d9434fd5 /lib
parent8975f9c235079eeb65696ff7fd6ae1005a48d614 (diff)
downloadredmine-1db6a0f89cb571e7d5654cc225729f2c30a41ea8.tar.gz
redmine-1db6a0f89cb571e7d5654cc225729f2c30a41ea8.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files 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