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

Method del_trunk

atomic-core/src/crdt/apply/traits.rs:518–526  ·  view source on GitHub ↗
(&mut self, id: TrunkId)

Source from the content-addressed store, hash-verified

516 }
517
518 fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> {
519 if let Some(trunk) = self.trunks.remove(&id) {
520 self.path_index.remove(trunk.path());
521 self.inode_index.remove(&trunk.inode());
522 Ok(true)
523 } else {
524 Ok(false)
525 }
526 }
527
528 fn update_trunk_state(
529 &mut self,

Callers

nothing calls this directly

Calls 3

removeMethod · 0.65
pathMethod · 0.45
inodeMethod · 0.45

Tested by

no test coverage detected