Show More
@@ -22,7 +22,6 use crate::DirstateError; | |||
|
22 | 22 | use crate::DirstateMapError; |
|
23 | 23 | use crate::DirstateParents; |
|
24 | 24 | use crate::DirstateStatus; |
|
25 | use crate::EntryState; | |
|
26 | 25 | use crate::FastHashbrownMap as FastHashMap; |
|
27 | 26 | use crate::PatternFileWarning; |
|
28 | 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 | 348 | pub(super) fn cached_directory_mtime( |
|
362 | 349 | &self, |
|
363 | 350 | ) -> Result<Option<TruncatedTimestamp>, DirstateV2ParseError> { |
General Comments 0
You need to be logged in to leave comments.
Login now