Remove Folder.delete(boolean)
This commit is contained in:
parent
d27180f55c
commit
eeb820b958
6 changed files with 0 additions and 24 deletions
|
@ -1899,7 +1899,6 @@ public class LocalFolder extends Folder<LocalMessage> {
|
|||
setVisibleLimit(getAccount().getDisplayCount());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(final boolean recurse) throws MessagingException {
|
||||
try {
|
||||
this.localStore.getDatabase().execute(false, new DbCallback<Void>() {
|
||||
|
|
|
@ -138,8 +138,6 @@ public abstract class Folder<T extends Message> {
|
|||
Timber.d("fetchPart() not implemented.");
|
||||
}
|
||||
|
||||
public abstract void delete(boolean recurse) throws MessagingException;
|
||||
|
||||
public abstract String getServerId();
|
||||
|
||||
public abstract String getName();
|
||||
|
|
|
@ -485,11 +485,6 @@ public class ImapFolder extends Folder<ImapMessage> {
|
|||
return uids.get(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(boolean recurse) throws MessagingException {
|
||||
throw new Error("ImapFolder.delete() not yet implemented");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImapMessage getMessage(String uid) throws MessagingException {
|
||||
return new ImapMessage(uid, this);
|
||||
|
|
|
@ -1102,13 +1102,6 @@ public class ImapFolderTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test(expected = Error.class)
|
||||
public void delete_notImplemented() throws Exception {
|
||||
ImapFolder folder = createFolder("Folder");
|
||||
|
||||
folder.delete(false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getMessageByUid_returnsNewImapMessageWithUidInFolder() throws Exception {
|
||||
ImapFolder folder = createFolder("Folder");
|
||||
|
|
|
@ -523,10 +523,6 @@ public class Pop3Folder extends Folder<Pop3Message> {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(boolean recurse) throws MessagingException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(List<? extends Message> msgs, String trashFolder) throws MessagingException {
|
||||
setFlags(msgs, Collections.singleton(Flag.DELETED), true);
|
||||
|
|
|
@ -221,11 +221,6 @@ public class WebDavFolder extends Folder<WebDavMessage> {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(boolean recursive) throws MessagingException {
|
||||
throw new Error("WebDavFolder.delete() not implemeneted");
|
||||
}
|
||||
|
||||
@Override
|
||||
public WebDavMessage getMessage(String uid) throws MessagingException {
|
||||
return new WebDavMessage(uid, this);
|
||||
|
|
Loading…
Reference in a new issue