Skip to content

Commit cbe91e5

Browse files
chore: remove unused method
1 parent 7333646 commit cbe91e5

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/dev/dev_build_cache.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { fsAdapter } from "../fs.ts";
1212
import type { FileTransformer } from "./file_transformer.ts";
1313
import { assertInDir } from "../utils.ts";
1414
import type { ResolvedBuildConfig } from "./builder.ts";
15-
import type { AnyComponent } from "preact";
1615
import { fsItemsToCommands, type FsRouteFile } from "../fs_routes.ts";
1716
import type { Command } from "../commands.ts";
1817
import type { ServerIslandRegistry } from "../context.ts";
@@ -154,12 +153,6 @@ export class MemoryBuildCache<State> implements DevBuildCache<State> {
154153
return null;
155154
}
156155

157-
getIslandChunkName(_fn: AnyComponent): string | null {
158-
// FIXME
159-
// return this.#islands.get(fn) ?? null;
160-
return null;
161-
}
162-
163156
addUnprocessedFile(pathname: string, dir: string): void {
164157
this.#unprocessedFiles.set(
165158
pathname,
@@ -232,10 +225,6 @@ export class DiskBuildCache<State> implements DevBuildCache<State> {
232225
return [];
233226
}
234227

235-
getIslandChunkName(_fn: AnyComponent): string | null {
236-
return null;
237-
}
238-
239228
addUnprocessedFile(pathname: string, dir: string): void {
240229
this.#unprocessedFiles.set(
241230
pathname.replaceAll(WINDOWS_SEPARATOR, "/"),

src/middlewares/static_files_test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { BuildCache, StaticFile } from "../build_cache.ts";
44
import { expect } from "@std/expect";
55
import { ASSET_CACHE_BUST_KEY } from "../runtime/shared_internal.tsx";
66
import { BUILD_ID } from "../runtime/build_id.ts";
7-
import type { AnyComponent } from "preact";
87
import type { Command } from "../commands.ts";
98
import type { ServerIslandRegistry } from "../context.ts";
109

@@ -38,9 +37,6 @@ class MockBuildCache implements BuildCache {
3837
async readFile(pathname: string): Promise<StaticFile | null> {
3938
return this.files.get(pathname) ?? null;
4039
}
41-
getIslandChunkName(_islandName: AnyComponent): string | null {
42-
return null;
43-
}
4440
}
4541

4642
Deno.test("static files - 200", async () => {

src/test_utils.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { WalkEntry } from "@std/fs/walk";
66
import { DEFAULT_CONN_INFO } from "./app.ts";
77
import type { Command } from "./commands.ts";
88
import { fsItemsToCommands, type FsRouteFile } from "./fs_routes.ts";
9-
import type { AnyComponent } from "preact";
109

1110
const STUB = {} as unknown as Deno.ServeHandlerInfo;
1211

@@ -159,8 +158,4 @@ export class MockBuildCache<State> implements BuildCache<State> {
159158
readFile(_pathname: string): Promise<StaticFile | null> {
160159
return Promise.resolve(null);
161160
}
162-
163-
getIslandChunkName(_fn: AnyComponent): string | null {
164-
return null;
165-
}
166161
}

0 commit comments

Comments
 (0)