diff --git a/src/channels/plugins/contracts/test-helpers/bundled-channel-plugin-loader.ts b/src/channels/plugins/contracts/test-helpers/bundled-channel-plugin-loader.ts index 11a46481c10..108f00d1ba6 100644 --- a/src/channels/plugins/contracts/test-helpers/bundled-channel-plugin-loader.ts +++ b/src/channels/plugins/contracts/test-helpers/bundled-channel-plugin-loader.ts @@ -1,7 +1,3 @@ -import { - listChannelCatalogEntries, - type PluginChannelCatalogEntry, -} from "../../../../plugins/channel-catalog-registry.js"; import { loadBundledPluginPublicSurface, loadBundledPluginPublicSurfaceSync, @@ -14,7 +10,6 @@ type ChannelPluginApiModule = Record; const channelPluginCache = new Map(); const channelPluginPromiseCache = new Map>(); -let channelCatalogEntries: PluginChannelCatalogEntry[] | undefined; function isChannelPlugin(value: unknown): value is ChannelPlugin { return ( @@ -30,13 +25,6 @@ export function listBundledChannelPluginIds(): readonly ChannelId[] { return listCatalogBundledChannelPluginIds() as ChannelId[]; } -export function getBundledChannelCatalogEntry( - id: ChannelId, -): PluginChannelCatalogEntry | undefined { - channelCatalogEntries ??= listChannelCatalogEntries({ origin: "bundled" }); - return channelCatalogEntries.find((entry) => entry.pluginId === id || entry.channel.id === id); -} - export function getBundledChannelPlugin(id: ChannelId): ChannelPlugin | undefined { if (channelPluginCache.has(id)) { return channelPluginCache.get(id) ?? undefined; diff --git a/test/helpers/auto-reply/trigger-handling-test-harness.ts b/test/helpers/auto-reply/trigger-handling-test-harness.ts index db87c78758c..6600ad43d6c 100644 --- a/test/helpers/auto-reply/trigger-handling-test-harness.ts +++ b/test/helpers/auto-reply/trigger-handling-test-harness.ts @@ -305,13 +305,6 @@ export function requireSessionStorePath(cfg: { session?: { store?: string } }): return storePath; } -export async function readSessionStore(cfg: { - session?: { store?: string }; -}): Promise> { - const storeRaw = await fs.readFile(requireSessionStorePath(cfg), "utf-8"); - return JSON.parse(storeRaw) as Record; -} - export async function expectInlineCommandHandledAndStripped(params: { home: string; getReplyFromConfig: typeof import("../../../src/auto-reply/reply.js").getReplyFromConfig;