diff --git a/middleware/notFound.tsx b/middleware/notFound.tsx index 8340130..34fbaee 100644 --- a/middleware/notFound.tsx +++ b/middleware/notFound.tsx @@ -1,6 +1,6 @@ // Copyright 2021 the Deno authors. All rights reserved. MIT license. /** @jsx h */ -import { getStyleTag, h, Helmet, renderSSR, Status, tw } from "../deps.ts"; +import { getStyleTag, h, Helmet, renderSSR, Status } from "../deps.ts"; import type { Middleware } from "../deps.ts"; import { sheet } from "../shared.ts"; import { getBody } from "../util.ts"; diff --git a/routes/doc.tsx b/routes/doc.tsx index 8e4b5ec..7179d6f 100644 --- a/routes/doc.tsx +++ b/routes/doc.tsx @@ -46,16 +46,6 @@ function isPackageHost(host: string): boolean { return host.toLowerCase() === "deno.land"; } -/** - * Return `true` if the index structure has "children" entries that can be - * displayed as an index, otherwise `false`. - */ -function hasSubEntries(indexStructure: IndexStructure, path: string): boolean { - return [...indexStructure.entries.keys()].some((key) => - key.startsWith(path) && key !== path - ); -} - export const packageGetHead: RouterMiddleware = (ctx, next) => { let { host, item, path } = ctx.params; let { search } = ctx.request.url;