From b089e48bd7c6da20d06296f306c18cef14d2ef7f Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 8 Jun 2022 20:31:47 +0100 Subject: [PATCH] [Paths] Remove cleanOldVersions whilst unused --- src/paths.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/paths.js b/src/paths.js index 7ec4355..eb1b670 100644 --- a/src/paths.js +++ b/src/paths.js @@ -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 }); - } */ }; \ No newline at end of file