Skip to content

Commit a6c3774

Browse files
committed
Cleanup code
1 parent f127d72 commit a6c3774

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tools/dev-server.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ async function getTemplate() {
3838
return templateFn;
3939
}
4040

41-
async function renderFile(file, step) {
42-
const md = readFileSync(file, { encoding: "utf-8" });
43-
const bodyContent = await convertMarkdown(md);
44-
const templateFn = await getTemplate();
45-
const html = templateFn({ step, title: `Step ${step}`, bodyContent });
46-
return html;
47-
}
48-
4941
app.use("/assets", express.static(join(__dirname, "..", "assets")));
5042

5143
app.use("/assets/anchor-js", express.static(join(__dirname, "..", "node_modules", "anchor-js")));

0 commit comments

Comments
 (0)