0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

remove unused fn

This commit is contained in:
Fred K. Schott 2021-03-30 17:06:13 -07:00
parent da6ad7a5ed
commit a3b20a9aff

View file

@ -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))