Skip to content

Commit 8b28a55

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.
1 parent 16435ed commit 8b28a55

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
@@ -497,18 +497,3 @@ export function stripMatrixParams(pathname: string): string {
497497
// This regex finds all occurrences of a semicolon followed by any characters
498498
return pathname.includes(';') ? pathname.replace(MATRIX_PARAMS_REGEX, '') : pathname;
499499
}
500-
501-
/**
502-
* Constructs a decoded URL string from its components.
503-
*
504-
* This function joins the pathname (with trailing slash removed), search, and hash,
505-
* and then decodes the result.
506-
*
507-
* @param pathname - The path of the URL.
508-
* @param search - The query string of the URL (including '?').
509-
* @param hash - The hash fragment of the URL (including '#').
510-
* @returns The constructed and decoded URL string.
511-
*/
512-
export function constructUrl(pathname: string, search: string, hash: string): string {
513-
return decodeURIComponent([stripTrailingSlash(pathname), search, hash].join(''));
514-
}

0 commit comments

Comments
 (0)