##// END OF EJS Templates
rust-dirstatemap: remove unused helper from the old API...
Raphaël Gomès -
r50034:e55ce618 default
parent child Browse files
Show More
@@ -22,7 +22,6 use crate::DirstateError;
22 use crate::DirstateMapError;
22 use crate::DirstateMapError;
23 use crate::DirstateParents;
23 use crate::DirstateParents;
24 use crate::DirstateStatus;
24 use crate::DirstateStatus;
25 use crate::EntryState;
26 use crate::FastHashbrownMap as FastHashMap;
25 use crate::FastHashbrownMap as FastHashMap;
27 use crate::PatternFileWarning;
26 use crate::PatternFileWarning;
28 use crate::StatusError;
27 use crate::StatusError;
@@ -346,18 +345,6 impl<'tree, 'on_disk> NodeRef<'tree, 'on
346 }
345 }
347 }
346 }
348
347
349 pub(super) fn state(
350 &self,
351 ) -> Result<Option<EntryState>, DirstateV2ParseError> {
352 Ok(self.entry()?.and_then(|e| {
353 if e.any_tracked() {
354 Some(e.state())
355 } else {
356 None
357 }
358 }))
359 }
360
361 pub(super) fn cached_directory_mtime(
348 pub(super) fn cached_directory_mtime(
362 &self,
349 &self,
363 ) -> Result<Option<TruncatedTimestamp>, DirstateV2ParseError> {
350 ) -> Result<Option<TruncatedTimestamp>, DirstateV2ParseError> {
General Comments 0
You need to be logged in to leave comments. Login now