mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-04 06:53:23 +02:00
cleanup redudent code
This commit is contained in:
parent
c8fc1e6963
commit
f7fb3fb30a
|
@ -380,9 +380,6 @@ class CurlEngine {
|
|||
|
||||
CurlResponse download(string originalFilename, string downloadFilename) {
|
||||
setResponseHolder(null);
|
||||
// Threshold for displaying download bar
|
||||
long thresholdFileSize = 4 * 2^^20; // 4 MiB
|
||||
|
||||
// open downloadFilename as write in binary mode
|
||||
auto file = File(downloadFilename, "wb");
|
||||
|
||||
|
|
|
@ -525,7 +525,6 @@ class OneDriveApi {
|
|||
// Return all the items that are shared with the user
|
||||
// https://docs.microsoft.com/en-us/graph/api/drive-sharedwithme
|
||||
JSONValue getSharedWithMe() {
|
||||
checkAccessTokenExpired();
|
||||
return get(sharedWithMeUrl);
|
||||
}
|
||||
|
||||
|
@ -679,7 +678,6 @@ class OneDriveApi {
|
|||
}
|
||||
|
||||
JSONValue createSubscription(string notificationUrl, SysTime expirationDateTime) {
|
||||
checkAccessTokenExpired();
|
||||
string driveId = appConfig.getValueString("drive_id");
|
||||
string url = subscriptionUrl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue