rust-dirstatemap: remove unused helper from the old API
authorRaphaël Gomès <rgomes@octobus.net>
Tue, 12 Apr 2022 17:35:25 +0200
changeset 49143 e55ce61891e3
parent 49142 c4ccd0346f5c
child 49144 f45e1618cbf6
rust-dirstatemap: remove unused helper from the old API Differential Revision: https://phab.mercurial-scm.org/D12541
rust/hg-core/src/dirstate_tree/dirstate_map.rs
--- 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> {