remove unneeded code
This commit is contained in:
parent
bdaa505518
commit
5d3ecdc9e6
|
@ -1,5 +1,4 @@
|
||||||
import { app } from 'electron';
|
import { app } from 'electron';
|
||||||
import { emptyDir } from 'fs-extra';
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { existsSync, mkdir } from 'promise-fs';
|
import { existsSync, mkdir } from 'promise-fs';
|
||||||
|
|
||||||
|
@ -16,13 +15,6 @@ export async function getTempDirPath() {
|
||||||
return tempDirPath;
|
return tempDirPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function clearEnteTempFolder() {
|
|
||||||
const tempDirPath = await this.getTempDirPath();
|
|
||||||
if (existsSync(tempDirPath)) {
|
|
||||||
await emptyDir(tempDirPath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function generateTempName(length: number) {
|
export function generateTempName(length: number) {
|
||||||
let result = '';
|
let result = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue