Skip to content

Commit

Permalink
chore: delete core utils findParentRouteId
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Jul 18, 2024
1 parent edd03eb commit 5e3c7ec
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/core/src/route/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ export function byLongestFirst(a: string, b: string): number {
return b.length - a.length;
}

export function findParentRouteId(
routeIds: string[],
childRouteId: string,
): string | undefined {
return routeIds.find((id) => childRouteId.startsWith(`${id}/`));
}

const routeModuleExts = ['.js', '.jsx', '.ts', '.tsx', '.md', '.mdx', '.vue'];
export function isRouteModuleFile(opts: { file: string; exclude?: RegExp[] }) {
// TODO: add cache strategy
Expand Down

0 comments on commit 5e3c7ec

Please sign in to comment.