summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-03-30 17:06:13 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-03-30 17:06:13 -0700
commita3b20a9affaee976c3e1f3019016fb096b1516fb (patch)
treeec6f0bc0555eb9b68966ad21a0ebff05288a6f83 /src
parentda6ad7a5edbea97d28d136b89cee2f6b8bdf7aae (diff)
downloadastro-a3b20a9affaee976c3e1f3019016fb096b1516fb.tar.gz
astro-a3b20a9affaee976c3e1f3019016fb096b1516fb.tar.zst
astro-a3b20a9affaee976c3e1f3019016fb096b1516fb.zip
remove unused fn
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))