summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/services
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-12-23 15:28:28 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-12-23 15:28:28 -0200
commit667c75e1af204dec1ab6b64c575ff17ffa2458aa (patch)
tree62cd7974aa17abe2e23b2c492d5997d156cd88ad /service/pixelated/adapter/services
parent3724db74e927dbeaabdd6a83186f267d2daa6b06 (diff)
deleting unused code
Diffstat (limited to 'service/pixelated/adapter/services')
-rw-r--r--service/pixelated/adapter/services/mailbox.py13
1 files changed, 0 insertions, 13 deletions
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)