diff options
author | 2021-03-30 17:06:13 -0700 | |
---|---|---|
committer | 2021-03-30 17:06:13 -0700 | |
commit | a3b20a9affaee976c3e1f3019016fb096b1516fb (patch) | |
tree | ec6f0bc0555eb9b68966ad21a0ebff05288a6f83 /src | |
parent | da6ad7a5edbea97d28d136b89cee2f6b8bdf7aae (diff) | |
download | astro-a3b20a9affaee976c3e1f3019016fb096b1516fb.tar.gz astro-a3b20a9affaee976c3e1f3019016fb096b1516fb.tar.zst astro-a3b20a9affaee976c3e1f3019016fb096b1516fb.zip |
remove unused fn
Diffstat (limited to 'src')
-rw-r--r-- | src/build.ts | 13 |
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)) |