From 34b979265427444d7e311773d6957221bd092a32 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Thu, 9 Apr 2026 13:52:58 -0400 Subject: delete unused withALS method (#21723) --- packages/opencode/src/effect/instance-state.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/opencode/src/effect/instance-state.ts b/packages/opencode/src/effect/instance-state.ts index cc5901fb5..a379d3afc 100644 --- a/packages/opencode/src/effect/instance-state.ts +++ b/packages/opencode/src/effect/instance-state.ts @@ -73,10 +73,4 @@ export namespace InstanceState { Effect.gen(function* () { return yield* ScopedCache.invalidate(self.cache, yield* directory) }) - - /** - * Effect finalizers run on the fiber scheduler after the original async - * boundary, so ALS reads like Instance.directory can be gone by then. - */ - export const withALS = (fn: () => T) => Effect.map(context, (ctx) => Instance.restore(ctx, fn)) } -- cgit v1.2.3