MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / remove

Method remove

atomic-core/src/change/store.rs:391–393  ·  view source on GitHub ↗

Remove a change from the store. # Arguments `hash` - The hash of the change to remove # Returns The removed change, if it existed.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

389 ///
390 /// The removed change, if it existed.
391 pub fn remove(&self, hash: &Hash) -> Option<Change> {
392 self.changes.write().unwrap().remove(hash)
393 }
394
395 /// Get the number of changes in the store.
396 pub fn len(&self) -> usize {

Callers

nothing calls this directly

Calls 3

removeMethod · 0.65
unwrapMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected