From 667c75e1af204dec1ab6b64c575ff17ffa2458aa Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 23 Dec 2014 15:28:28 -0200 Subject: deleting unused code --- service/pixelated/adapter/services/mailbox.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'service/pixelated/adapter/services/mailbox.py') diff --git a/service/pixelated/adapter/services/mailbox.py b/service/pixelated/adapter/services/mailbox.py index 508dec31..40d9cb8e 100644 --- a/service/pixelated/adapter/services/mailbox.py +++ b/service/pixelated/adapter/services/mailbox.py @@ -22,19 +22,6 @@ class Mailbox: self.mailbox_tag = mailbox_name.lower() self.querier = querier - def mails(self): - _mails = self.querier.all_mails_by_mailbox(self.mailbox_name) - - result = [] - for mail in _mails: - result.append(mail) - return result - - def mails_by_tags(self, tags): - if 'all' in tags or self.mailbox_tag in tags: - return self.mails() - return [mail for mail in self.mails() if len(mail.tags.intersection(tags)) > 0] - def mail(self, mail_id): return self.querier.mail(mail_id) -- cgit v1.2.3