fix: remove unused pCloud related logout code

This commit is contained in:
Manuel Jenny 2021-03-17 15:47:57 +01:00
parent 0bb01fec0e
commit 73b3dc1459
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -4,7 +4,6 @@ import org.cryptomator.domain.Cloud;
import org.cryptomator.domain.DropboxCloud;
import org.cryptomator.domain.GoogleDriveCloud;
import org.cryptomator.domain.OnedriveCloud;
import org.cryptomator.domain.PCloudCloud;
import org.cryptomator.domain.exception.BackendException;
import org.cryptomator.domain.repository.CloudContentRepository;
import org.cryptomator.domain.repository.CloudRepository;
@ -48,14 +47,6 @@ class LogoutCloud {
.withUsername(null) //
.withAccessToken(null) //
.build();
} else if (cloud instanceof PCloudCloud) {
//TODO proper logout?
return PCloudCloud //
.aCopyOf((PCloudCloud) cloud) //
.withUsername(null) //
.withAccessToken(null) //
.withUrl(null) //
.build();
}
throw new IllegalStateException("Logout not supported for cloud with type " + cloud.type());
}