about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2023-09-13 06:21:16 +0200
committerAlan Pearce2023-09-13 06:24:02 +0200
commita5e05c9241c8c6e7f0a8ce54fecdbb7df3c1ecec (patch)
treed80b83d5f654480b5353acd317a2bfe10697a4b9 /src
parent7c64360212a54cf259c503929c74c6c92c4d875d (diff)
downloadwebsite-a5e05c9241c8c6e7f0a8ce54fecdbb7df3c1ecec.tar.lz
website-a5e05c9241c8c6e7f0a8ce54fecdbb7df3c1ecec.tar.zst
website-a5e05c9241c8c6e7f0a8ce54fecdbb7df3c1ecec.zip
Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/index.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/index.ts b/src/index.ts
index 418af5c..f423b01 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,8 +1,6 @@
 import path from "node:path";
 import fs, { Stats } from "node:fs";
 import fsp from "node:fs/promises";
-import util from "node:util";
-
 import { withHtmlLiveReload } from "bun-html-live-reload";
 
 import readConfig from "./config";
@@ -13,10 +11,6 @@ const publicDir = path.resolve(base, "public") + path.sep;
 const config = readConfig(base);
 const defaultHeaders = config.extra.headers;
 
-function getFilename(name: string): string {
-  return path.join(publicDir, `${name}`);
-}
-
 type File = {
   filename: string;
   headers?: Record<string, string>;