aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index b66c388c4..913d053bf 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -405,14 +405,6 @@ public
# A new incoming email to this request
def receive(email, raw_email_data, override_stop_new_responses = false, rejected_reason = "")
- # Just adding a bit of extra error checking just to save a lot of deep chasing of
- # strangeness.
- # TODO: Remove this when we don't use the TMail backend anymore for anything
- if (MailHandler.backend == "TMail" && !email.kind_of?(TMail::Mail)) ||
- (MailHandler.backend == "Mail" && !email.kind_of?(Mail::Message))
- raise "Wrong kind of mail object passed in receive"
- end
-
if !override_stop_new_responses
allow = nil
reason = nil