Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/dirstate_tree/dispatch.rs @ 47477:eb416759af7e
dirstate: Removed unused instances of `DirsMultiset`
? in Rust-backed dirstatemap.
The Python class `dirstatemap` had cached properties `_dirs` and `_alldirs`
that were not used for `hastrackeddir` and `hasdir` since they were redundant
with corresponding fields for the Rust `DirstateMap` struct.
`dirfoldmap` is modified to reuse instead the directory iterator introduced
in 3b9914b28133c0918186b6e8b9e4f1916e21338d.
Differential Revision: https://phab.mercurial-scm.org/D10921
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 28 Jun 2021 15:52:10 +0200 |
parents | 3b9914b28133 |
children | 8851acad5906 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/dispatch.rs Mon Jun 28 15:41:50 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/dispatch.rs Mon Jun 28 15:52:10 2021 +0200 @@ -95,10 +95,6 @@ now: Timestamp, ) -> Result<Vec<u8>, DirstateError>; - fn set_all_dirs(&mut self) -> Result<(), DirstateError>; - - fn set_dirs(&mut self) -> Result<(), DirstateError>; - fn status<'a>( &'a mut self, matcher: &'a (dyn Matcher + Sync), @@ -281,14 +277,6 @@ ) } - fn set_all_dirs(&mut self) -> Result<(), DirstateError> { - self.set_all_dirs() - } - - fn set_dirs(&mut self) -> Result<(), DirstateError> { - self.set_dirs() - } - fn status<'a>( &'a mut self, matcher: &'a (dyn Matcher + Sync),