]> source.dussan.org Git - redmine.git/commitdiff
Removed dead code.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Mar 2012 18:20:07 +0000 (18:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Mar 2012 18:20:07 +0000 (18:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9176 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/workflow.rb

index 785d248c5d4b7e172008733e62911dde9ae243bb..cd9ae5c21b500ae2d4c588ccd55ae418ec131498 100644 (file)
@@ -41,17 +41,6 @@ class Workflow < ActiveRecord::Base
     result
   end
 
-  # Find potential statuses the user could be allowed to switch issues to
-  def self.available_statuses(project, user=User.current)
-    Workflow.find(:all,
-                  :include => :new_status,
-                  :conditions => {:role_id => user.roles_for_project(project).collect(&:id)}).
-      collect(&:new_status).
-      compact.
-      uniq.
-      sort
-  end
-
   # Copies workflows from source to targets
   def self.copy(source_tracker, source_role, target_trackers, target_roles)
     unless source_tracker.is_a?(Tracker) || source_role.is_a?(Role)