Remove unused function

This commit is contained in:
ariasuni 2021-05-04 22:43:31 +02:00
parent 90416ed3ce
commit 86d5939abe

View File

@ -3,7 +3,6 @@
use std::cmp::Ordering;
use std::iter::FromIterator;
use std::os::unix::fs::MetadataExt;
use std::path::Path;
use crate::fs::DotFilter;
use crate::fs::File;
@ -321,14 +320,6 @@ impl IgnorePatterns {
fn is_ignored(&self, file: &str) -> bool {
self.patterns.iter().any(|p| p.matches(file))
}
/// Test whether the given file should be hidden from the results.
pub fn is_ignored_path(&self, file: &Path) -> bool {
self.patterns.iter().any(|p| p.matches_path(file))
}
// TODO(ogham): The fact that `is_ignored_path` is pub while `is_ignored`
// isnt probably means its in the wrong place
}