Mercurial > hg
changeset 49143:e55ce61891e3
rust-dirstatemap: remove unused helper from the old API
Differential Revision: https://phab.mercurial-scm.org/D12541
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 12 Apr 2022 17:35:25 +0200 |
parents | c4ccd0346f5c |
children | f45e1618cbf6 |
files | rust/hg-core/src/dirstate_tree/dirstate_map.rs |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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> {