From a74d55edd99a4bae23e7d9cbd76136ffa7707ccf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Jul 2013 08:13:34 +0000 Subject: [PATCH] Removed dead code. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12011 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mailer.rb | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 83dbd9fc6..6e07d61f7 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -297,31 +297,6 @@ class Mailer < ActionMailer::Base :subject => 'Redmine test' end - # Overrides default deliver! method to prevent from sending an email - # with no recipient, cc or bcc - def deliver!(mail = @mail) - set_language_if_valid @initial_language - return false if (recipients.nil? || recipients.empty?) && - (cc.nil? || cc.empty?) && - (bcc.nil? || bcc.empty?) - - - # Log errors when raise_delivery_errors is set to false, Rails does not - raise_errors = self.class.raise_delivery_errors - self.class.raise_delivery_errors = true - begin - return super(mail) - rescue Exception => e - if raise_errors - raise e - elsif mylogger - mylogger.error "The following error occured while sending email notification: \"#{e.message}\". Check your configuration in config/configuration.yml." - end - ensure - self.class.raise_delivery_errors = raise_errors - end - end - # Sends reminders to issue assignees # Available options: # * :days => how many days in the future to remind about (defaults to 7) -- 2.39.5