diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-01-15 15:58:15 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2016-01-15 15:58:15 +0100 |
commit | 5ad932698066f4371ebd76c662b4d503529948bc (patch) | |
tree | dd05d1bd8211b7eedbe29cd16ee3251fa03b2fc8 /service | |
parent | cd831d1dfc42c2a0d292fe5c1b7f497b2ca393eb (diff) |
Remove unused method and rename private one
- See issue #578
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/adapter/mailstore/leap_mailstore.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index cf8c8ed1..4a0de6a1 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -121,12 +121,12 @@ class LeapMail(Mail): return result - def remove_duplicates(self, values): + def _remove_duplicates(self, values): return list(set(values)) def _decoded_header_utf_8(self, header_value): if isinstance(header_value, list): - return self.remove_duplicates([self._decoded_header_utf_8(v) for v in header_value]) + return self._remove_duplicates([self._decoded_header_utf_8(v) for v in header_value]) elif header_value is not None: def encode_chunk(content, encoding): return unicode(content.strip(), encoding=encoding or 'ascii', errors='ignore') @@ -150,9 +150,6 @@ class LeapMail(Mail): 'attachments': [attachment.as_dict() for attachment in self._attachments] } - def _reply_recipient(self, kind): - return self.headers.get(kind, []) - @staticmethod def from_dict(mail_dict): # TODO: implement this method and also write tests for it |