diff --git a/src/renderer/src/runtime/sync-runtime-graph/mobile-session-inputs.ts b/src/renderer/src/runtime/sync-runtime-graph/mobile-session-inputs.ts index 36fbb3e26d7..62058c203e3 100644 --- a/src/renderer/src/runtime/sync-runtime-graph/mobile-session-inputs.ts +++ b/src/renderer/src/runtime/sync-runtime-graph/mobile-session-inputs.ts @@ -24,6 +24,7 @@ import type { import { captureMountedTerminalSurfaces, narrowedEntriesEqual, + narrowMapByKeys, narrowRecordByKeys } from './mobile-session-capture' import { @@ -208,24 +209,6 @@ export function buildMobileSessionWorktreeInputs( } } -function narrowMapByKeys( - source: ReadonlyMap, - keys: readonly string[] -): ReadonlyMap { - if (source.size === 0 || keys.length === 0) { - return EMPTY_NARROWED_BY_KEY - } - let narrowed: Map | null = null - for (const key of keys) { - if (!source.has(key)) { - continue - } - narrowed ??= new Map() - narrowed.set(key, source.get(key) as T) - } - return narrowed ?? EMPTY_NARROWED_BY_KEY -} - export function buildMobileLaunchDraftsByPaneKey(args: { terminalTabs: AppState['tabsByWorktree'][string] terminalLayoutByTabId: MobileSessionWorktreeInputs['terminalLayoutByTabId']