MCPcopy Create free account
hub / github.com/StackStorm/st2 / discard

Method discard

st2client/st2client/utils/types.py:46–50  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

44 curr[2] = end[1] = self.map[key] = [key, curr, end]
45
46 def discard(self, key):
47 if key in self.map:
48 key, prev, next = self.map.pop(key)
49 prev[2] = next
50 next[1] = prev
51
52 def __iter__(self):
53 end = self.end

Callers 1

popMethod · 0.95

Calls 1

popMethod · 0.45

Tested by

no test coverage detected