]> source.dussan.org Git - redmine.git/commitdiff
Remove dead code.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 13:43:44 +0000 (13:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 13:43:44 +0000 (13:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3061 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 62c761d1aa04bab55b409d385313af84f21210cc..34d033efa3860a4622358dfaf75ec22f2815b5a5 100644 (file)
@@ -91,21 +91,6 @@ class Project < ActiveRecord::Base
   def identifier_frozen?
     errors[:identifier].nil? && !(new_record? || identifier.blank?)
   end
-  
-  def issues_with_subprojects(include_subprojects=false)
-    conditions = nil
-    if include_subprojects
-      ids = [id] + descendants.collect(&:id)
-      conditions = ["#{Project.table_name}.id IN (#{ids.join(',')}) AND #{Project.visible_by}"]
-    end
-    conditions ||= ["#{Project.table_name}.id = ?", id]
-    # Quick and dirty fix for Rails 2 compatibility
-    Issue.send(:with_scope, :find => { :conditions => conditions }) do 
-      Version.send(:with_scope, :find => { :conditions => conditions }) do
-        yield
-      end
-    end 
-  end
 
   # returns latest created projects
   # non public projects will be returned only if user is a member of those