From 33678ea0228f5f46786a6300febceb56b42d9c01 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Mon, 30 Sep 2013 16:55:39 -0400 Subject: [PATCH] Eliminate unnecessary override in LocalAttachmentBody. The overriding code is the same as the overridden code. --- src/com/fsck/k9/mail/store/LocalStore.java | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 37c5b5570..0d16a5210 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -4084,31 +4084,6 @@ public class LocalStore extends Store implements Serializable { } } - @Override - public void writeTo(OutputStream out) throws IOException, MessagingException { - InputStream in = getInputStream(); - try { - boolean closeStream = false; - if (MimeUtil.isBase64Encoding(mEncoding)) { - out = new Base64OutputStream(out); - closeStream = true; - } else if (MimeUtil.isQuotedPrintableEncoded(mEncoding)){ - out = new QuotedPrintableOutputStream(out, false); - closeStream = true; - } - - try { - IOUtils.copy(in, out); - } finally { - if (closeStream) { - out.close(); - } - } - } finally { - in.close(); - } - } - public Uri getContentUri() { return mUri; }