From f5d40077865449caa16fae2d94828d23149ac2d3 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Sat, 28 Dec 2024 14:27:42 +0100 Subject: [PATCH] chore(router): util.ts: Remove unused code (#11841) --- packages/router/src/util.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/router/src/util.ts b/packages/router/src/util.ts index 42f188c3c98d..60efde1a979b 100644 --- a/packages/router/src/util.ts +++ b/packages/router/src/util.ts @@ -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(