Skip to content

Commit

Permalink
chore: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jan 8, 2025
1 parent 794fdd5 commit 6b2a659
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/router/src/experimental/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import type {
RouteLocationRaw,
RouteLocationResolved,
RouteMap,
RouteParams,
RouteRecordNameGeneric,
} from '../typed-routes'
import {
Expand All @@ -72,8 +71,7 @@ import {
parseURL,
START_LOCATION_NORMALIZED,
} from '../location'
import { applyToParams, assign, isArray, isBrowser, noop } from '../utils'
import { decode, encodeParam } from '../encoding'
import { assign, isArray, isBrowser, noop } from '../utils'
import {
extractChangingRecords,
extractComponentsGuards,
Expand Down Expand Up @@ -455,15 +453,6 @@ export function experimental_createRouter(
history.scrollRestoration = 'manual'
}

const normalizeParams = applyToParams.bind(
null,
paramValue => '' + paramValue
)
const encodeParams = applyToParams.bind(null, encodeParam)
const decodeParams: (params: RouteParams | undefined) => RouteParams =
// @ts-expect-error: intentionally avoid the type check
applyToParams.bind(null, decode)

function addRoute(
parentOrRoute:
| NonNullable<RouteRecordNameGeneric>
Expand Down

0 comments on commit 6b2a659

Please sign in to comment.