From 767eb75c2baa7d8209b4d5a6d8f6294323689297 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Wed, 4 May 2022 14:17:35 +0300 Subject: [PATCH] Kill dead code Co-authored-by: Mikko Aspiala Signed-off-by: Janne Savolainen --- src/main/native-theme.ts | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/main/native-theme.ts diff --git a/src/main/native-theme.ts b/src/main/native-theme.ts deleted file mode 100644 index e729245666..0000000000 --- a/src/main/native-theme.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) OpenLens Authors. All rights reserved. - * Licensed under MIT License. See LICENSE in root directory for more information. - */ - -import { nativeTheme } from "electron"; -import { broadcastMessage } from "../common/ipc"; -import { setNativeThemeChannel } from "../common/ipc/native-theme"; - -export function broadcastNativeThemeOnUpdate() { - nativeTheme.on("updated", () => { - broadcastMessage(setNativeThemeChannel, getNativeColorTheme()); - }); -} - -export function getNativeColorTheme() { - return nativeTheme.shouldUseDarkColors ? "dark" : "light"; -}