Mercurial > hg
diff rust/hg-core/src/dirstate/dirstate_map.rs @ 48048:76f1c76186a1
dirstate: Remove return boolean from dirstatemap.dropfile
None of the remaining callers use it.
Differential Revision: https://phab.mercurial-scm.org/D11491
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 23 Sep 2021 15:26:33 +0200 |
parents | 32ef647821b2 |
children | 2ac0e6b23222 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/dirstate_map.rs Wed Sep 22 18:56:58 2021 +0200 +++ b/rust/hg-core/src/dirstate/dirstate_map.rs Thu Sep 23 15:26:33 2021 +0200 @@ -198,7 +198,7 @@ pub fn drop_file( &mut self, filename: &HgPath, - ) -> Result<bool, DirstateError> { + ) -> Result<(), DirstateError> { let old_state = self.get(filename).map(|e| e.state()); let exists = self.state_map.remove(filename).is_some(); @@ -216,7 +216,7 @@ .0 .remove(filename); - Ok(exists) + Ok(()) } pub fn clear_ambiguous_times(