Skip to content

Commit d6e1497

Browse files
Remove dead code (#398)
1 parent 581e635 commit d6e1497

21 files changed

+2762
-9811
lines changed

app/lib/blog.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ interface MarkdownPost {
159159
html: string;
160160
}
161161

162-
export interface BlogAuthor {
162+
interface BlogAuthor {
163163
name: string;
164164
title: string;
165165
avatar: string;
166166
}
167167

168-
export interface BlogPost extends Omit<MarkdownPost, "authors"> {
168+
interface BlogPost extends Omit<MarkdownPost, "authors"> {
169169
authors: BlogAuthor[];
170170
}

app/lib/md.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type * as Shiki from "shiki";
1616
import type * as Unified from "unified";
1717
import themeJson from "../../data/base16.json";
1818

19-
export interface ProcessorOptions {
19+
interface ProcessorOptions {
2020
resolveHref?(href: string): string;
2121
}
2222

@@ -32,7 +32,7 @@ export async function processMarkdown(
3232
return { attributes, raw, html };
3333
}
3434

35-
export async function getProcessor(options?: ProcessorOptions) {
35+
async function getProcessor(options?: ProcessorOptions) {
3636
let [
3737
{ unified },
3838
{ default: remarkGfm },
@@ -69,7 +69,7 @@ type InternalPlugin<
6969
Output,
7070
> = Unified.Plugin<[ProcessorOptions?], Input, Output>;
7171

72-
export async function loadPlugins() {
72+
async function loadPlugins() {
7373
let [{ visit, SKIP }, { htmlEscape }] = await Promise.all([
7474
import("unist-util-visit"),
7575
import("escape-goat"),

app/lib/observe-rect.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)