From 5ad932698066f4371ebd76c662b4d503529948bc Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Fri, 15 Jan 2016 15:58:15 +0100 Subject: Remove unused method and rename private one - See issue #578 --- service/pixelated/adapter/mailstore/leap_mailstore.py | 7 ++----- 1 file 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 -- cgit v1.2.3