summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/build.ts b/src/build.ts
index 0287daf6b..25d5e5ec6 100644
--- a/src/build.ts
+++ b/src/build.ts
@@ -17,19 +17,6 @@ const logging: LogOptions = {
dest: defaultLogDestination,
};
-async function* recurseFiles(root: URL): AsyncGenerator<URL, void, unknown> {
- for (const filename of await readdir(root)) {
- const fullpath = new URL(filename, root);
- const info = await stat(fullpath);
-
- if (info.isDirectory()) {
- yield* recurseFiles(new URL(fullpath + '/'));
- } else {
- yield fullpath;
- }
- }
-}
-
async function allPages(root: URL) {
const api = new fdir()
.filter((p) => /\.(astro|md)$/.test(p))