diff --git a/src/infra/browser-open.ts b/src/infra/browser-open.ts index deb15aaf60e..d48261aa7ad 100644 --- a/src/infra/browser-open.ts +++ b/src/infra/browser-open.ts @@ -116,26 +116,3 @@ export async function openUrl(url: string): Promise { return false; } } - -export async function openUrlInBackground(url: string): Promise { - if (shouldSkipBrowserOpenInTests()) { - return false; - } - const normalizedUrl = normalizeBrowserOpenUrl(url); - if (!normalizedUrl) { - return false; - } - if (process.platform !== "darwin") { - return false; - } - const resolved = await resolveBrowserOpenCommand(); - if (!resolved.argv || resolved.command !== "open") { - return false; - } - try { - await runCommandWithTimeout(["open", "-g", normalizedUrl], { timeoutMs: 5_000 }); - return true; - } catch { - return false; - } -}