[Paths] Remove cleanOldVersions whilst unused

This commit is contained in:
Ducko 2022-06-08 20:31:47 +01:00
parent 3585c7a1db
commit b089e48bd7
1 changed files with 0 additions and 6 deletions

View File

@ -29,10 +29,4 @@ exports.init = () => {
global.moduleDataPath = moduleData; // Global because discord
app.setPath('userData', userData); // Set userData properly because electron
// cleanOldVersions
/* if (installPath) for (const x of fs.readdirSync(installPath)) {
if (x.startsWith('app-') && !x.includes(buildInfo.version)) fs.rmSync(join(installPath, x), { recursive: true, force: true });
} */
};