]> source.dussan.org Git - redmine.git/commitdiff
Removed deprecated stuff for Redmine 3.0.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 22 Oct 2014 18:28:33 +0000 (18:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 22 Oct 2014 18:28:33 +0000 (18:28 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13483 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/helpers/watchers_helper.rb
app/models/enumeration.rb
app/models/setting.rb
app/models/version.rb

index 0cb4c4c00ae97c8b9c6dc6adf4d4a5a5b16d6ce5..7e9cdce9027fffd148bebfb5fd144eab391776f6 100644 (file)
@@ -137,8 +137,6 @@ module ApplicationHelper
   def link_to_project(project, options={}, html_options = nil)
     if project.archived?
       h(project.name)
-    elsif options.key?(:action)
-      raise "#link_to_project no longer accepts :action option in Redmine 3.0"
     else
       link_to project.name, project_path(project, options), html_options
     end
@@ -1054,14 +1052,6 @@ module ApplicationHelper
     fields_for(*args, &proc)
   end
 
-  def labelled_remote_form_for(*args, &proc)
-    ActiveSupport::Deprecation.warn "ApplicationHelper#labelled_remote_form_for is deprecated and will be removed in Redmine 2.2."
-    args << {} unless args.last.is_a?(Hash)
-    options = args.last
-    options.merge!({:builder => Redmine::Views::LabelledFormBuilder, :remote => true})
-    form_for(*args, &proc)
-  end
-
   def error_messages_for(*objects)
     html = ""
     objects = objects.map {|o| o.is_a?(String) ? instance_variable_get("@#{o}") : o}.compact
index 28f912bbcd0b90c9ba121e42d448c8184c0d4f54..a6a9c3dde81f81cd5f59a52a278eb4481f71ed2b 100644 (file)
 
 module WatchersHelper
 
-  def watcher_tag(object, user, options={})
-    ActiveSupport::Deprecation.warn "#watcher_tag is deprecated and will be removed in Redmine 3.0. Use #watcher_link instead."
-    watcher_link(object, user)
-  end
-
   def watcher_link(objects, user)
     return '' unless user && user.logged?
     objects = Array.wrap(objects)
index 8c82a0dc8c3da4c3afd6d1027ecc946fd4230a4c..9e76211cd14b07ab14302a9648bade8fd49fc5a0 100644 (file)
@@ -103,12 +103,6 @@ class Enumeration < ActiveRecord::Base
     subclasses
   end
 
-  # TODO: remove in Redmine 3.0
-  def self.overridding_change?(new, previous)
-    ActiveSupport::Deprecation.warn "Enumeration#overridding_change? is deprecated and will be removed in Redmine 3.0. Please use #overriding_change?."
-    overriding_change?(new, previous)
-  end
-
   # Does the +new+ Hash override the previous Enumeration?
   def self.overriding_change?(new, previous)
     if (same_active_state?(new['active'], previous.active)) && same_custom_values?(new,previous)
index 3881f90f162a839c31278e71cb5df3cbdf9d983f..c207de22bb6abf4db08d0b5ac340ea7a1eef33de 100644 (file)
@@ -196,27 +196,6 @@ END_SRC
     a
   end
 
-  def self.commit_fix_keywords
-    ActiveSupport::Deprecation.warn "Setting.commit_fix_keywords is deprecated and will be removed in Redmine 3"
-    if commit_update_keywords.is_a?(Array)
-      commit_update_keywords.first && commit_update_keywords.first['keywords']
-    end
-  end
-
-  def self.commit_fix_status_id
-    ActiveSupport::Deprecation.warn "Setting.commit_fix_status_id is deprecated and will be removed in Redmine 3"
-    if commit_update_keywords.is_a?(Array)
-      commit_update_keywords.first && commit_update_keywords.first['status_id']
-    end
-  end
-
-  def self.commit_fix_done_ratio
-    ActiveSupport::Deprecation.warn "Setting.commit_fix_done_ratio is deprecated and will be removed in Redmine 3"
-    if commit_update_keywords.is_a?(Array)
-      commit_update_keywords.first && commit_update_keywords.first['done_ratio']
-    end
-  end
-
   def self.openid?
     Object.const_defined?(:OpenID) && self[:openid].to_i > 0
   end
index 45c7c25a6d059200d3e7663e02204ff3dcde4ce0..878c611edbf74c2030102ee69a0d63ad98ab38eb 100644 (file)
@@ -126,12 +126,6 @@ class Version < ActiveRecord::Base
     end
   end
 
-  # TODO: remove in Redmine 3.0
-  def completed_pourcent
-    ActiveSupport::Deprecation.warn "Version#completed_pourcent is deprecated and will be removed in Redmine 3.0. Please use #completed_percent instead."
-    completed_percent
-  end
-
   # Returns the percentage of issues that have been marked as 'closed'.
   def closed_percent
     if issues_count == 0
@@ -141,12 +135,6 @@ class Version < ActiveRecord::Base
     end
   end
 
-  # TODO: remove in Redmine 3.0
-  def closed_pourcent
-    ActiveSupport::Deprecation.warn "Version#closed_pourcent is deprecated and will be removed in Redmine 3.0. Please use #closed_percent instead."
-    closed_percent
-  end
-
   # Returns true if the version is overdue: due date reached and some open issues
   def overdue?
     effective_date && (effective_date < Date.today) && (open_issues_count > 0)