Skip to content

Commit b26497f

Browse files
committed
remove unused function
1 parent 48f0612 commit b26497f

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/lib/IgnoreAssetsIntegration.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import type {
2-
AstroConfig,
3-
AstroIntegration,
4-
IntegrationResolvedRoute,
5-
RedirectConfig,
6-
} from "astro";
1+
import type { AstroConfig, AstroIntegration, RedirectConfig } from "astro";
72
import { glob } from "glob";
83
import { extname } from "node:path";
94
import { fileURLToPath } from "node:url";
@@ -60,16 +55,3 @@ async function enumerateAssets(
6055
: []
6156
);
6257
}
63-
64-
function filterRoutes(
65-
routes: IntegrationResolvedRoute[]
66-
): IntegrationResolvedRoute[] {
67-
return routes.filter(
68-
(route) =>
69-
!(
70-
route.type === "redirect" &&
71-
typeof route.redirect === "object" &&
72-
(route.redirect.status as number) === 410
73-
)
74-
);
75-
}

0 commit comments

Comments
 (0)