Skip to content

Commit

Permalink
remove unused items according to the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Jul 9, 2024
1 parent 3cf98ec commit 89204a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion middleware/notFound.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
10 changes: 0 additions & 10 deletions routes/doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DocRoutes> = (ctx, next) => {
let { host, item, path } = ctx.params;
let { search } = ctx.request.url;
Expand Down

0 comments on commit 89204a0

Please sign in to comment.