Mercurial > hg
diff rust/hg-core/src/dirstate_tree/dispatch.rs @ 47121:b6339a993b91
rust: Remove handling of `parents` in `DirstateMap`
The Python wrapper class `dirstatemap` can take care of it.
This removes the need to have both `_rustmap` and `_inner_rustmap`.
Differential Revision: https://phab.mercurial-scm.org/D10555
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 30 Apr 2021 15:40:11 +0200 |
parents | d5956136d19d |
children | d8ac62374943 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/dispatch.rs Fri Apr 30 14:22:14 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/dispatch.rs Fri Apr 30 15:40:11 2021 +0200 @@ -73,13 +73,6 @@ directory: &HgPath, ) -> Result<bool, DirstateMapError>; - fn parents( - &mut self, - file_contents: &[u8], - ) -> Result<&DirstateParents, DirstateError>; - - fn set_parents(&mut self, parents: &DirstateParents); - fn read<'a>( &mut self, file_contents: &'a [u8], @@ -223,17 +216,6 @@ self.has_dir(directory) } - fn parents( - &mut self, - file_contents: &[u8], - ) -> Result<&DirstateParents, DirstateError> { - self.parents(file_contents) - } - - fn set_parents(&mut self, parents: &DirstateParents) { - self.set_parents(parents) - } - fn read<'a>( &mut self, file_contents: &'a [u8],