Skip to content

Commit bfd2fd4

Browse files
MeAkibdgp1130
authored andcommitted
refactor(@angular/ssr): remove unused constructUrl helper
Remove the `constructUrl` function, which was added in 61a027d 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. (cherry picked from commit 8b28a55)
1 parent ddd1760 commit bfd2fd4

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • packages/angular/ssr/src/utils

‎packages/angular/ssr/src/utils/url.ts‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,3 @@ export function stripMatrixParams(pathname: string): string {
276276
// This regex finds all occurrences of a semicolon followed by any characters
277277
return pathname.includes(';') ? pathname.replace(MATRIX_PARAMS_REGEX, '') : pathname;
278278
}
279-
280-
/**
281-
* Constructs a decoded URL string from its components.
282-
*
283-
* This function joins the pathname (with trailing slash removed), search, and hash,
284-
* and then decodes the result.
285-
*
286-
* @param pathname - The path of the URL.
287-
* @param search - The query string of the URL (including '?').
288-
* @param hash - The hash fragment of the URL (including '#').
289-
* @returns The constructed and decoded URL string.
290-
*/
291-
export function constructUrl(pathname: string, search: string, hash: string): string {
292-
return decodeURIComponent([stripTrailingSlash(pathname), search, hash].join(''));
293-
}

0 commit comments

Comments
 (0)