Skip to content

Commit 4502043

Browse files
generatedunixname2188312725328782meta-codesync[bot]
authored andcommitted
Fix dead_code lint in fbcode/eden/scm
Reviewed By: dtolnay Differential Revision: D104216536 fbshipit-source-id: 3585e416ae91bdf0294412976cf84969b8a44ebb
1 parent eb9b905 commit 4502043

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • eden/scm/lib/manifest-tree/src

eden/scm/lib/manifest-tree/src/link.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ use manifest::File;
1818
use manifest::FileMetadata;
1919
use manifest::FsNodeMetadata;
2020
use once_cell::sync::OnceCell;
21-
use pathmatcher::DirectoryMatch;
22-
use pathmatcher::Matcher;
2321
use types::HgId;
2422
use types::PathComponentBuf;
2523
use types::RepoPath;
@@ -158,15 +156,6 @@ impl Link {
158156
}
159157
}
160158

161-
pub fn matches(&self, matcher: &impl Matcher, path: &RepoPath) -> Result<bool> {
162-
match self.as_ref() {
163-
Leaf(_) => matcher.matches_file(path),
164-
Durable(_) | Ephemeral(_) => {
165-
Ok(matcher.matches_directory(path)? != DirectoryMatch::Nothing)
166-
}
167-
}
168-
}
169-
170159
pub fn thread_copy(&self) -> Self {
171160
Link {
172161
inner: self.inner.clone(),

0 commit comments

Comments
 (0)