Skip to content

Commit

Permalink
chore(router): util.ts: Remove unused code (#11841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Dec 28, 2024
1 parent da64880 commit f5d4007
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/router/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,6 @@ export function replaceParams(
const paramNames = params.map((param) => param[0])
const extraArgKeys = Object.keys(args).filter((x) => !paramNames.includes(x))

// Prepare any unnamed params to be be appended as search params.
const queryParams: string[] = []
extraArgKeys.forEach((key) => {
queryParams.push(`${key}=${args[key]}`)
})

// Append any unnamed params as search params.
if (extraArgKeys.length) {
const extraArgs = Object.fromEntries(
Expand Down

0 comments on commit f5d4007

Please sign in to comment.