From aedbb88a8025851067be9f77ec406b29d65599a8 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Tue, 28 Jul 2026 21:47:21 +0530 Subject: refactor: delete exports and knobs that nothing calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit isInternalUrl, SPECIAL_KEYS, andThen and mapErr had no callers in src or test. BrowserState.remoteBrowserId was parsed on restore and never written — the field that is actually read lives on DaemonStatus. IpcServer.disconnectClient and IpcServer.clients() were unreachable, as was EventRouter.allClients and a write-only lineCount counter. DAEMON_STALE_SOCKET_CLEANUP was a hardcoded true with an if around it, so the unlink now runs unconditionally. CdpBridge.isAlive and getSessionOwner look equally dead from src/ alone, but test/manual/bridge-test.ts drives both — they are the only seams that suite has, so they stay. Co-Authored-By: Claude Opus 5 (1M context) --- src/cdp/types.ts | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/cdp') diff --git a/src/cdp/types.ts b/src/cdp/types.ts index 33ab202..984b930 100644 --- a/src/cdp/types.ts +++ b/src/cdp/types.ts @@ -46,13 +46,6 @@ export type DaemonStatus = { readonly remoteBrowserId?: string; }; -const INTERNAL_PREFIXES: ReadonlyArray = [ - "chrome://", "chrome-untrusted://", "devtools://", "chrome-extension://", "about:", -]; - -export const isInternalUrl = (url: string): boolean => - INTERNAL_PREFIXES.some((p) => url.startsWith(p)); - export const isCdpRawMessage = (v: unknown): v is CdpRawMessage => { if (!isRecord(v)) return false; const id = v["id"]; -- cgit v1.2.3