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
This commit is contained in:
Toshi MARUYAMA 2012-10-23 00:17:05 +00:00
parent 8975f9c235
commit 1db6a0f89c
1 changed files with 2 additions and 2 deletions

View File

@ -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