Skip to content

Commit 6b2a659

Browse files
committed
chore: remove unused
1 parent 794fdd5 commit 6b2a659

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

packages/router/src/experimental/router.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import type {
5656
RouteLocationRaw,
5757
RouteLocationResolved,
5858
RouteMap,
59-
RouteParams,
6059
RouteRecordNameGeneric,
6160
} from '../typed-routes'
6261
import {
@@ -72,8 +71,7 @@ import {
7271
parseURL,
7372
START_LOCATION_NORMALIZED,
7473
} from '../location'
75-
import { applyToParams, assign, isArray, isBrowser, noop } from '../utils'
76-
import { decode, encodeParam } from '../encoding'
74+
import { assign, isArray, isBrowser, noop } from '../utils'
7775
import {
7876
extractChangingRecords,
7977
extractComponentsGuards,
@@ -455,15 +453,6 @@ export function experimental_createRouter(
455453
history.scrollRestoration = 'manual'
456454
}
457455

458-
const normalizeParams = applyToParams.bind(
459-
null,
460-
paramValue => '' + paramValue
461-
)
462-
const encodeParams = applyToParams.bind(null, encodeParam)
463-
const decodeParams: (params: RouteParams | undefined) => RouteParams =
464-
// @ts-expect-error: intentionally avoid the type check
465-
applyToParams.bind(null, decode)
466-
467456
function addRoute(
468457
parentOrRoute:
469458
| NonNullable<RouteRecordNameGeneric>

0 commit comments

Comments
 (0)