summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-15 13:43:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-15 13:43:44 +0000
commit6838677e30c18b92a828865905f828ff93fce88e (patch)
tree3be98df4a7fa5a3e67574c5156d27b2cdcf582a9 /app/models/project.rb
parentded602c89f313312f1c06f0b28e68754936af7b4 (diff)
downloadredmine-6838677e30c18b92a828865905f828ff93fce88e.tar.gz
redmine-6838677e30c18b92a828865905f828ff93fce88e.zip
Remove dead code.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3061 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 62c761d1a..34d033efa 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -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