Merge pull request #726 from matthiasbeyer/libimagstore/storeid-remove-is-file

Remove StoreId::is_file()
This commit is contained in:
Matthias Beyer 2016-09-09 14:39:29 +02:00 committed by GitHub
commit 9f1faf764f
2 changed files with 0 additions and 6 deletions

View file

@ -75,10 +75,6 @@ impl StoreId {
self.clone().into_pathbuf().map(|pb| pb.exists()).unwrap_or(false) self.clone().into_pathbuf().map(|pb| pb.exists()).unwrap_or(false)
} }
pub fn is_file(&self) -> bool {
true
}
pub fn to_str(&self) -> Result<String> { pub fn to_str(&self) -> Result<String> {
if self.base.is_some() { if self.base.is_some() {
let mut base = self.base.as_ref().cloned().unwrap(); let mut base = self.base.as_ref().cloned().unwrap();

View file

@ -55,8 +55,6 @@ impl NonMutableHookDataAccessor for LinkedEntriesExistHook {
for link in links { for link in links {
if !link.exists() { if !link.exists() {
warn!("File link does not exist: {:?} -> {:?}", fle.get_location(), link); warn!("File link does not exist: {:?} -> {:?}", fle.get_location(), link);
} else if !link.is_file() {
warn!("File link is not a file: {:?} -> {:?}", fle.get_location(), link);
} }
} }
}) })