cleaned up unused code

This commit is contained in:
trippjoe 2022-04-10 10:39:06 -04:00
parent 5f7208372a
commit 0671652d88

View file

@ -9,17 +9,6 @@ import { buildGame } from './launch';
const userDir = await appDir(); const userDir = await appDir();
let jakISOPath; let jakISOPath;
// refactored tauri get iso function
// async function getISO(callback) {
// const isoPath = await open({ multiple: false, directory: false, filters: [{ extensions: ['ISO'], name: 'Jak ISO File' }] });
// if (isoPath) {
// jakISOPath = isoPath;
// return ('Got the ISO File');
// }
// throw new Error('No ISO File Selected');
// }
async function getISO() { async function getISO() {
const isoPath = await open({ multiple: false, directory: false, filters: [{ extensions: ['ISO'], name: 'Jak ISO File' }] }); const isoPath = await open({ multiple: false, directory: false, filters: [{ extensions: ['ISO'], name: 'Jak ISO File' }] });
@ -30,7 +19,6 @@ async function getISO() {
throw new Error('No ISO File Selected'); throw new Error('No ISO File Selected');
} }
// refactored tauri copy jak iso function
async function copyJakISO() { async function copyJakISO() {
const destinationPath = await join(userDir, '/iso/'); const destinationPath = await join(userDir, '/iso/');
@ -60,14 +48,14 @@ async function runDecompiler() {
break; break;
case 'darwin': case 'darwin':
decompCommand = 'decomp-mac'; decompCommand = 'decomp-mac';
// return ['Unsupported OS', null]; throw new Error('Unsupported OS');
break; break;
case 'linux': case 'linux':
decompCommand = 'decomp-linux'; decompCommand = 'decomp-linux';
// return ['Unsupported OS', null]; throw new Error('Unsupported OS');
break; break;
default: default:
// return ['Unsupported OS', null]; throw new Error('Unsupported OS');
break; break;
} }