rust-dirstatemap: remove unused helper from the old API
Differential Revision: https://phab.mercurial-scm.org/D12541
--- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs Tue Apr 12 17:35:02 2022 +0200
+++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs Tue Apr 12 17:35:25 2022 +0200
@@ -22,7 +22,6 @@
use crate::DirstateMapError;
use crate::DirstateParents;
use crate::DirstateStatus;
-use crate::EntryState;
use crate::FastHashbrownMap as FastHashMap;
use crate::PatternFileWarning;
use crate::StatusError;
@@ -346,18 +345,6 @@
}
}
- pub(super) fn state(
- &self,
- ) -> Result<Option<EntryState>, DirstateV2ParseError> {
- Ok(self.entry()?.and_then(|e| {
- if e.any_tracked() {
- Some(e.state())
- } else {
- None
- }
- }))
- }
-
pub(super) fn cached_directory_mtime(
&self,
) -> Result<Option<TruncatedTimestamp>, DirstateV2ParseError> {