MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / remove

Method remove

src/com/dtmilano/android/mcp/object_store.py:109–125  ·  view source on GitHub ↗

Remove an object from the store. This method is idempotent - removing a non-existent object ID does not raise an error. Args: oid: The object ID to remove Example: >>> store.remove(456) >>> store.

(self, oid: int)

Source from the content-addressed store, hash-verified

107 return oid in self._objects
108
109 def remove(self, oid: int) -> None:
110 """
111 Remove an object from the store.
112
113 This method is idempotent - removing a non-existent object ID
114 does not raise an error.
115
116 Args:
117 oid: The object ID to remove
118
119 Example:
120 >>> store.remove(456)
121 >>> store.exists(456)
122 False
123 """
124 if oid in self._objects:
125 del self._objects[oid]
126
127 def clear(self) -> None:
128 """

Callers 14

setUpMethod · 0.45
mainMethod · 0.45
jquery-3.6.0.jsFile · 0.45
cloneCopyEventFunction · 0.45
defaultPrefilterFunction · 0.45
searchtools.jsFile · 0.45
jquery.jsFile · 0.45

Calls

no outgoing calls