1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Eliminate unnecessary override in LocalAttachmentBody.

The overriding code is the same as the overridden code.
This commit is contained in:
Joe Steele 2013-09-30 16:55:39 -04:00
parent e20170c996
commit 33678ea022

View File

@ -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;
}