refactor: remove unused internal helpers and state (#5667)

* refactor: remove unused internal helpers and state

* test(tui): await deferred submissions before reconnect attach
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-05 22:09:12 +08:00
1 parent f37ba60ed4
commit 63cc5f270d
11 files changed
+12 -118

No files matched your search

@@ -1,15 +1,3 @@
export function parsePublicHttpUrl(value: string): URL | null {
try {
const url = new URL(value);
if (url.protocol !== "http:" && url.protocol !== "https:") return null;
if (url.username || url.password) return null;
if (isPrivateHostname(url.hostname)) return null;
return url;
} catch {
return null;
}
}
/** Public URL normalized for timeline display, with credentials and request-specific noise removed. */
export function parseSafeActivityHttpUrl(value: string): URL | null {
try {