MCPcopy
hub / github.com/aidenybai/react-scan / delete

Method delete

packages/scan/src/web/utils/lru.ts:59–66  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

57 }
58
59 delete(key: Key): void {
60 const result = this.nodes.get(key);
61
62 if (result) {
63 this.removeNode(result);
64 this.nodes.delete(key);
65 }
66 }
67
68 private insertHead(node: LRUNode<Key, Value>): void {
69 if (this.head) {

Callers 15

setMethod · 0.95
event-tracking.tsFile · 0.80
subscribeMethod · 0.80
subscribeFunction · 0.80
createFunction · 0.80
cleanupFunction · 0.80
ensureRecordFunction · 0.80
what-changed.tsxFile · 0.80
DiffChangeFunction · 0.80
ReferenceOnlyChangeFunction · 0.80
PropertyElementFunction · 0.80
startFadeOutFunction · 0.80

Calls 2

removeNodeMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected