mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove dead code
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
4b2aaa8923
commit
9a0da94de8
@ -1,25 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import trayInjectable from "./tray.injectable";
|
|
||||||
import { onLoadOfApplicationInjectionToken } from "../start-main-application/runnable-tokens/on-load-of-application-injection-token";
|
|
||||||
|
|
||||||
const installTrayInjectable = getInjectable({
|
|
||||||
id: "install-tray",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const trayInitializer = di.inject(trayInjectable);
|
|
||||||
|
|
||||||
return {
|
|
||||||
run: async () => {
|
|
||||||
await trayInitializer.start();
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
injectionToken: onLoadOfApplicationInjectionToken,
|
|
||||||
});
|
|
||||||
|
|
||||||
export default installTrayInjectable;
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import { initTray } from "./tray";
|
|
||||||
import { getStartableStoppable } from "../../common/utils/get-startable-stoppable";
|
|
||||||
import showApplicationWindowInjectable from "../start-main-application/lens-window/show-application-window.injectable";
|
|
||||||
import trayMenuItemsInjectable from "./tray-menu-item/tray-menu-items.injectable";
|
|
||||||
import trayIconPathInjectable from "./tray-icon-path.injectable";
|
|
||||||
|
|
||||||
const trayInjectable = getInjectable({
|
|
||||||
id: "tray",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const trayMenuItems = di.inject(trayMenuItemsInjectable);
|
|
||||||
const showApplicationWindow = di.inject(showApplicationWindowInjectable);
|
|
||||||
const trayIconPath = di.inject(trayIconPathInjectable);
|
|
||||||
|
|
||||||
return getStartableStoppable("build-of-tray", () =>
|
|
||||||
initTray(
|
|
||||||
trayMenuItems,
|
|
||||||
showApplicationWindow,
|
|
||||||
trayIconPath,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default trayInjectable;
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import trayInjectable from "./tray.injectable";
|
|
||||||
import { beforeQuitOfBackEndInjectionToken } from "../start-main-application/runnable-tokens/before-quit-of-back-end-injection-token";
|
|
||||||
|
|
||||||
const uninstallTrayInjectable = getInjectable({
|
|
||||||
id: "uninstall-tray",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const trayInitializer = di.inject(trayInjectable);
|
|
||||||
|
|
||||||
return {
|
|
||||||
run: async () => {
|
|
||||||
await trayInitializer.stop();
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
injectionToken: beforeQuitOfBackEndInjectionToken,
|
|
||||||
});
|
|
||||||
|
|
||||||
export default uninstallTrayInjectable;
|
|
||||||
Loading…
Reference in New Issue
Block a user