From f7fb3fb30ad93b5fe9ffb5690c181bb76ca98054 Mon Sep 17 00:00:00 2001 From: Jcomp Date: Sat, 9 Mar 2024 22:39:50 +0800 Subject: [PATCH] cleanup redudent code --- src/curlEngine.d | 3 --- src/onedrive.d | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/curlEngine.d b/src/curlEngine.d index 0c867fa8..76886697 100644 --- a/src/curlEngine.d +++ b/src/curlEngine.d @@ -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"); diff --git a/src/onedrive.d b/src/onedrive.d index 383d5bcf..d91c61bf 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -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;