From 5d3ecdc9e6dcf6786c292ba4f44a7716ce38e4b2 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 16 Nov 2022 15:47:22 +0530 Subject: [PATCH] remove unneeded code --- src/utils/temp.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/utils/temp.ts b/src/utils/temp.ts index dd6924417..79bbea5b7 100644 --- a/src/utils/temp.ts +++ b/src/utils/temp.ts @@ -1,5 +1,4 @@ import { app } from 'electron'; -import { emptyDir } from 'fs-extra'; import path from 'path'; import { existsSync, mkdir } from 'promise-fs'; @@ -16,13 +15,6 @@ export async function getTempDirPath() { return tempDirPath; } -export async function clearEnteTempFolder() { - const tempDirPath = await this.getTempDirPath(); - if (existsSync(tempDirPath)) { - await emptyDir(tempDirPath); - } -} - export function generateTempName(length: number) { let result = '';