fix: remove unused pCloud related logout code
This commit is contained in:
parent
0bb01fec0e
commit
73b3dc1459
@ -4,7 +4,6 @@ import org.cryptomator.domain.Cloud;
|
|||||||
import org.cryptomator.domain.DropboxCloud;
|
import org.cryptomator.domain.DropboxCloud;
|
||||||
import org.cryptomator.domain.GoogleDriveCloud;
|
import org.cryptomator.domain.GoogleDriveCloud;
|
||||||
import org.cryptomator.domain.OnedriveCloud;
|
import org.cryptomator.domain.OnedriveCloud;
|
||||||
import org.cryptomator.domain.PCloudCloud;
|
|
||||||
import org.cryptomator.domain.exception.BackendException;
|
import org.cryptomator.domain.exception.BackendException;
|
||||||
import org.cryptomator.domain.repository.CloudContentRepository;
|
import org.cryptomator.domain.repository.CloudContentRepository;
|
||||||
import org.cryptomator.domain.repository.CloudRepository;
|
import org.cryptomator.domain.repository.CloudRepository;
|
||||||
@ -48,14 +47,6 @@ class LogoutCloud {
|
|||||||
.withUsername(null) //
|
.withUsername(null) //
|
||||||
.withAccessToken(null) //
|
.withAccessToken(null) //
|
||||||
.build();
|
.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());
|
throw new IllegalStateException("Logout not supported for cloud with type " + cloud.type());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user