Browse Source

Remove unused function

ariasuni 4 years ago
parent
commit
86d5939abe
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/fs/filter.rs

+ 0 - 9
src/fs/filter.rs

@@ -3,7 +3,6 @@
 use std::cmp::Ordering;
 use std::cmp::Ordering;
 use std::iter::FromIterator;
 use std::iter::FromIterator;
 use std::os::unix::fs::MetadataExt;
 use std::os::unix::fs::MetadataExt;
-use std::path::Path;
 
 
 use crate::fs::DotFilter;
 use crate::fs::DotFilter;
 use crate::fs::File;
 use crate::fs::File;
@@ -321,14 +320,6 @@ impl IgnorePatterns {
     fn is_ignored(&self, file: &str) -> bool {
     fn is_ignored(&self, file: &str) -> bool {
         self.patterns.iter().any(|p| p.matches(file))
         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`
-    // isn’t probably means it’s in the wrong place
 }
 }