MCPcopy Index your code
hub / github.com/anomalyco/opencode / remove

Function remove

packages/app/src/context/tab-memory.ts:11–16  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

9 const entries = new Map<string, Map<string, Entry>>()
10
11 const remove = (key: string) => {
12 const state = entries.get(key)
13 if (!state) return
14 for (const entry of state.values()) entry.dispose()
15 entries.delete(key)
16 }
17
18 return {
19 ensure<T>(key: string, name: string, init: () => T) {

Callers 1

disposeFunction · 0.70

Calls 4

getMethod · 0.65
valuesMethod · 0.45
disposeMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected