From accefedfa5ab9e60832f4c52ccd0ac7743ba319a Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 21 Jan 2019 17:14:00 +0000 Subject: [PATCH] Cleanup --- .../java/eu/faircode/email/EntityAttachment.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityAttachment.java b/app/src/main/java/eu/faircode/email/EntityAttachment.java index cfb7cede16..770e9bb38d 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -21,10 +21,7 @@ package eu.faircode.email; import android.content.Context; -import java.io.BufferedWriter; import java.io.File; -import java.io.FileWriter; -import java.io.IOException; import javax.mail.Part; @@ -82,18 +79,6 @@ public class EntityAttachment { return new File(dir, Long.toString(id)); } - void write(Context context, String body) throws IOException { - File file = getFile(context, id); - BufferedWriter out = null; - try { - out = new BufferedWriter(new FileWriter(file)); - out.write(body == null ? "" : body); - } finally { - if (out != null) - out.close(); - } - } - @Override public boolean equals(Object obj) { if (obj instanceof EntityAttachment) {