Remove Folder.delete(boolean)

This commit is contained in:
cketti 2019-01-10 00:03:59 +01:00
parent d27180f55c
commit eeb820b958
6 changed files with 0 additions and 24 deletions

View file

@ -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>() {

View file

@ -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();

View file

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

View file

@ -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");

View file

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

View file

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