MCPcopy Create free account
hub / github.com/chakra-ui/panda / delete

Method delete

packages/shared/src/cache-map.ts:29–38  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

27 }
28
29 delete(key: K) {
30 const result = this.cache.delete(key)
31 if (result) {
32 const index = this.keysInUse.indexOf(key)
33 if (index !== -1) {
34 this.keysInUse.splice(index, 1)
35 }
36 }
37 return result
38 }
39
40 private updateKeyUsage(key: K) {
41 const index = this.keysInUse.indexOf(key)

Callers 7

parseFunction · 0.80
removeMethod · 0.80
extractFunction · 0.80
HeadingFunction · 0.80
toggleSectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected