Skip to content

Commit 1f34a5c

Browse files
committed
remove unused variable
1 parent a5077d2 commit 1f34a5c

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/main/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { join } from 'path';
33
import ElectronStore from 'electron-store';
44
import * as electronLocalShortcut from 'electron-localshortcut';
55
import * as electronRemote from '@electron/remote/main';
6-
import { release } from 'os';
76
import { promises } from 'fs';
87
import { getPlatform } from 'qsu';
98
import pkg from '../../package.json';
@@ -32,7 +31,6 @@ global.ENV_IS_DEV = !app.isPackaged;
3231
global.ENV_OS = CURRENT_OS;
3332
global.ENV_IS_WINDOWS = CURRENT_OS === 'Windows';
3433
global.ENV_IS_MAC = CURRENT_OS === 'macOS';
35-
global.ENV_OS_VERSION = release();
3634

3735
const schema = mainStoreSchema as DeepWriteable<typeof mainStoreSchema>;
3836
const store = new ElectronStore({ schema });

src/renderer/utils/helper.ts

-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ export const goToExtLink = async (ev, link) => {
99

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

12-
export const getOSVersion = () => getGlobal('ENV_OS_VERSION');
13-
1412
export const getVersionName = () => getGlobal('APP_VERSION_NAME');
1513

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

3028
export default {
3129
getOS,
32-
getOSVersion,
3330
goToExtLink,
3431
getVersionName,
3532
isDarkMode,

0 commit comments

Comments
 (0)