From cd045a8769899f2c93881546d938c6815c2776f1 Mon Sep 17 00:00:00 2001 From: ArceDanielShok Date: Wed, 31 Jul 2024 21:01:58 -0300 Subject: [PATCH] Refactor: Removed unused function --- src/apps/shared/HttpClient/HttpClient.ts | 2 +- src/context/virtual-drive/files/application/FileCreator.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/apps/shared/HttpClient/HttpClient.ts b/src/apps/shared/HttpClient/HttpClient.ts index 75150cfbe..a422e9310 100644 --- a/src/apps/shared/HttpClient/HttpClient.ts +++ b/src/apps/shared/HttpClient/HttpClient.ts @@ -15,7 +15,7 @@ export class AuthorizedHttpClient { private handleUnauthorizedResponse(error: AxiosError) { if (error?.response?.status === 401) { Logger.warn('[AUTH] Request unauthorized'); - this.unauthorizedNotifier(); + // this.unauthorizedNotifier(); } // Prevent the token from being displayed in the logs diff --git a/src/context/virtual-drive/files/application/FileCreator.ts b/src/context/virtual-drive/files/application/FileCreator.ts index 341d5693d..739cb99d9 100644 --- a/src/context/virtual-drive/files/application/FileCreator.ts +++ b/src/context/virtual-drive/files/application/FileCreator.ts @@ -51,10 +51,6 @@ export class FileCreator { Logger.debug('[DEBUG IN FILECREATOR STEEP 3]' + filePath.value); - const existingPersistedFile = await this.remote.checkStatusFile(contents.id); - - Logger.debug('[DEBUG IN FILECREATOR STEEP 3.1]' + existingPersistedFile); - const persistedAttributes = await this.remote.persist(offline); Logger.debug('[DEBUG IN FILECREATOR STEEP 4]' + filePath.value);