diff --git a/src/main/utils/sync-box/sync-box-initial-value-handler.injectable.ts b/src/main/utils/sync-box/sync-box-initial-value-handler.injectable.ts deleted file mode 100644 index 490fb17cf2..0000000000 --- a/src/main/utils/sync-box/sync-box-initial-value-handler.injectable.ts +++ /dev/null @@ -1,22 +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 type { RequestChannelHandler } from "../../../common/utils/channel/request-channel-listener-injection-token"; -import type { SyncBoxInitialValueChannel } from "../../../common/utils/sync-box/channels"; -import { syncBoxInjectionToken } from "../../../common/utils/sync-box/sync-box-injection-token"; - -const syncBoxInitialValueChannelHandlerInjectable = getInjectable({ - id: "sync-box-initial-value-channel-handler", - instantiate: (di): RequestChannelHandler => { - const syncBoxes = di.injectMany(syncBoxInjectionToken); - - return () => syncBoxes.map((box) => ({ - id: box.id, - value: box.value.get(), - })); - }, -}); - -export default syncBoxInitialValueChannelHandlerInjectable; diff --git a/src/test-utils/channel-fakes/override-requesting-from-window-to-main.ts b/src/test-utils/channel-fakes/override-requesting-from-window-to-main.ts index 5a4637ea56..ddf758f5b6 100644 --- a/src/test-utils/channel-fakes/override-requesting-from-window-to-main.ts +++ b/src/test-utils/channel-fakes/override-requesting-from-window-to-main.ts @@ -3,9 +3,10 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { DiContainer } from "@ogre-tools/injectable"; -import type { RequestChannel, RequestChannelListener } from "../../common/utils/channel/request-channel-listener-injection-token"; +import type { RequestChannel } from "../../common/utils/channel/request-channel-listener-injection-token"; import type { RequestFromChannel } from "../../common/utils/channel/request-from-channel-injection-token"; import enlistRequestChannelListenerInjectableInMain from "../../main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable"; +import type { RequestChannelListener } from "../../main/utils/channel/channel-listeners/listener-tokens"; import requestFromChannelInjectable from "../../renderer/utils/channel/request-from-channel.injectable"; export const overrideRequestingFromWindowToMain = (mainDi: DiContainer) => {