From cbc4bfc22e2791f1bb04cf66fb47cdd840b26955 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 10 Oct 2018 13:01:29 +0000 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/DaoMessage.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 78259795..c94210d0 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -139,24 +139,11 @@ public interface DaoMessage { " OR message.msgid = :reference)") List getMessageByMsgId(long account, String msgid, String reference); - @Query("SELECT message.* FROM message" + - " JOIN folder ON folder.id = message.folder" + - " WHERE message.account = :account" + - " AND message.thread = :thread" + - " AND folder.type <> '" + EntityFolder.OUTBOX + "'" + - " AND folder.type <> '" + EntityFolder.DRAFTS + "'") - List getMessageByThread(long account, String thread); - @Query("SELECT *" + " FROM message" + " WHERE folder = :folder") List getMessageByFolder(long folder); - @Query("SELECT id FROM message" + - " WHERE folder = :folder" + - " ORDER BY message.received DESC, message.sent DESC") - List getMessageIDs(long folder); - @Query("SELECT message.*" + ", account.name AS accountName, account.color AS accountColor" + ", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +