Kill off dead code in Message.to_dict_uncached().

If this line of code were ever called, it would crash anyway,
because it would be an unknown type, and Recipient.type_name()
would raise a KeyError.

(imported from commit db38c5f71fb2f0b044a832eb88e53fceb0d8a9cf)
This commit is contained in:
Steve Howell 2013-09-21 10:02:51 -04:00
parent dc077a708f
commit 005ad9c8e0
1 changed files with 0 additions and 2 deletions

View File

@ -544,8 +544,6 @@ class Message(models.Model):
display_recipient = [recip, display_recipient[0]] display_recipient = [recip, display_recipient[0]]
elif recip['email'] > display_recipient[0]['email']: elif recip['email'] > display_recipient[0]['email']:
display_recipient = [display_recipient[0], recip] display_recipient = [display_recipient[0], recip]
else:
display_type = recipient.type_name()
obj = dict( obj = dict(
id = self.id, id = self.id,