Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Nov 27, 2022
1 parent a5077d2 commit 1f34a5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { join } from 'path';
import ElectronStore from 'electron-store';
import * as electronLocalShortcut from 'electron-localshortcut';
import * as electronRemote from '@electron/remote/main';
import { release } from 'os';
import { promises } from 'fs';
import { getPlatform } from 'qsu';
import pkg from '../../package.json';
Expand Down Expand Up @@ -32,7 +31,6 @@ global.ENV_IS_DEV = !app.isPackaged;
global.ENV_OS = CURRENT_OS;
global.ENV_IS_WINDOWS = CURRENT_OS === 'Windows';
global.ENV_IS_MAC = CURRENT_OS === 'macOS';
global.ENV_OS_VERSION = release();

const schema = mainStoreSchema as DeepWriteable<typeof mainStoreSchema>;
const store = new ElectronStore({ schema });
Expand Down
3 changes: 0 additions & 3 deletions src/renderer/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export const goToExtLink = async (ev, link) => {

export const getOS = () => getGlobal('ENV_OS');

export const getOSVersion = () => getGlobal('ENV_OS_VERSION');

export const getVersionName = () => getGlobal('APP_VERSION_NAME');

export const getRuffleVersion = () => getGlobal('APP_RUFFLE_VERSION_DATE');
Expand All @@ -29,7 +27,6 @@ export const isDarkMode = (theme) => {

export default {
getOS,
getOSVersion,
goToExtLink,
getVersionName,
isDarkMode,
Expand Down

0 comments on commit 1f34a5c

Please sign in to comment.