From 413485c080a8a4b5c272fba8fe40c95ad02864e2 Mon Sep 17 00:00:00 2001 From: MeAkib Date: Sun, 1 Nov 2026 23:26:49 +0600 Subject: [PATCH] refactor(@angular/ssr): remove unused constructUrl helper Remove the `constructUrl` function, which was added in 61a027dba7 without a caller and has never been referenced anywhere since. It is not exported from the package entry points and does not appear in the public API golden. --- packages/angular/ssr/src/utils/url.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/angular/ssr/src/utils/url.ts b/packages/angular/ssr/src/utils/url.ts index ed0654f251c9..15615fe204f7 100644 --- a/packages/angular/ssr/src/utils/url.ts +++ b/packages/angular/ssr/src/utils/url.ts @@ -497,18 +497,3 @@ export function stripMatrixParams(pathname: string): string { // This regex finds all occurrences of a semicolon followed by any characters return pathname.includes(';') ? pathname.replace(MATRIX_PARAMS_REGEX, '') : pathname; } - -/** - * Constructs a decoded URL string from its components. - * - * This function joins the pathname (with trailing slash removed), search, and hash, - * and then decodes the result. - * - * @param pathname - The path of the URL. - * @param search - The query string of the URL (including '?'). - * @param hash - The hash fragment of the URL (including '#'). - * @returns The constructed and decoded URL string. - */ -export function constructUrl(pathname: string, search: string, hash: string): string { - return decodeURIComponent([stripTrailingSlash(pathname), search, hash].join('')); -}