From b8836d89b1051014fe4bc92662d44990e9430d7c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 29 Nov 2011 18:11:11 +0000 Subject: [PATCH] Removed deprecated methods. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7977 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 5 ----- app/models/time_entry.rb | 8 -------- 2 files changed, 13 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index dcfe8fdbb..e636c33de 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -123,11 +123,6 @@ class Project < ActiveRecord::Base user.allowed_to?(:view_project, self) end - def self.visible_by(user=nil) - ActiveSupport::Deprecation.warn "Project.visible_by is deprecated and will be removed in Redmine 1.3.0. Use Project.visible_condition instead." - visible_condition(user || User.current) - end - # Returns a SQL conditions string used to find all projects visible by the specified user. # # Examples: diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index f452c4843..1afe54829 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -86,14 +86,6 @@ class TimeEntry < ActiveRecord::Base (usr == user && usr.allowed_to?(:edit_own_time_entries, project)) || usr.allowed_to?(:edit_time_entries, project) end - # TODO: remove this method in 1.3.0 - def self.visible_by(usr) - ActiveSupport::Deprecation.warn "TimeEntry.visible_by is deprecated and will be removed in Redmine 1.3.0. Use the visible scope instead." - with_scope(:find => { :conditions => Project.allowed_to_condition(usr, :view_time_entries) }) do - yield - end - end - def self.earilest_date_for_project(project=nil) finder_conditions = ARCondition.new(Project.allowed_to_condition(User.current, :view_time_entries)) if project -- 2.39.5