Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

chore: remove dead code in zombienet provider #748

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions providers/frame/zombienet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { unreachable } from "../../deps/std/testing/asserts.ts"
import { Network, readNetworkConfig, start } from "../../deps/zombienet.ts"
import { PathInfo } from "../../server/mod.ts"
import { PermanentMemo } from "../../util/mod.ts"
Expand Down Expand Up @@ -36,14 +35,4 @@ export class ZombienetProvider extends FrameProxyProvider {
if (!url) throw new Error()
return url
}

async network(zombienetCachePath: string, networkManifestPath: string): Promise<Network> {
const watcher = Deno.watchFs(zombienetCachePath)
for await (const e of watcher) {
if (e.kind === "modify" && e.paths.includes(networkManifestPath)) {
return JSON.parse(await Deno.readTextFile(networkManifestPath))
}
}
return unreachable()
}
}