MCPcopy Index your code
hub / github.com/plexdrive/plexdrive / Purge

Method Purge

chunk/stack.go:69–75  ·  view source on GitHub ↗

Purge an item from the stack

(item *list.Element)

Source from the content-addressed store, hash-verified

67
68// Purge an item from the stack
69func (s *Stack) Purge(item *list.Element) {
70 s.lock.Lock()
71 defer s.lock.Unlock()
72 if item != s.items.Front() {
73 s.items.MoveToFront(item)
74 }
75}

Callers 2

TestAddToStackFunction · 0.95
LoadMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestAddToStackFunction · 0.76