cleanup redudent code

This commit is contained in:
Jcomp 2024-03-09 22:39:50 +08:00
parent c8fc1e6963
commit f7fb3fb30a
2 changed files with 0 additions and 5 deletions

View file

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

View file

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