mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Kill 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
66dd1ab65e
commit
beb0103427
@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
|
||||||
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
|
|
||||||
import type { RegisteredAppPreference } from "./app-preferences/app-preference-registration";
|
|
||||||
|
|
||||||
export const extensionPreferenceItemInjectionToken = getInjectionToken<RegisteredAppPreference>({
|
|
||||||
id: "extension-preference-item-injection-token",
|
|
||||||
});
|
|
||||||
|
|
||||||
const extensionsPreferenceItemsInjectable = getInjectable({
|
|
||||||
id: "extension-preference-items",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const computedInjectMany = di.inject(computedInjectManyInjectable);
|
|
||||||
|
|
||||||
return computedInjectMany(extensionPreferenceItemInjectionToken);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default extensionsPreferenceItemsInjectable;
|
|
||||||
Loading…
Reference in New Issue
Block a user