From 35ea719d9e0fa21f0d6bbbb2e2958fbbd4d7d89c Mon Sep 17 00:00:00 2001 From: ruffson Date: Sat, 26 Sep 2020 13:44:53 +0200 Subject: [PATCH] Remove get_all_tags() --- src/decoder/mod.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index f741d90..6e98275 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -712,32 +712,6 @@ impl Decoder { } } - pub fn get_all_tags(&mut self) -> Vec<(Tag, ifd::Value)> { - let mut all_tags = Vec::new(); - - let dir = match &self.ifd { - Some(d) => d, - None => { - println!("No tags found"); - return all_tags; - } - }; - let keys = dir.keys().cloned().collect::>(); - // go through all tags - for key in keys { - let tag_value = match self.get_tag(key) { - Ok(val) => val, - _ => { - println!("Could not unwrap {:?}", key); - continue; - } - }; - all_tags.push((key, tag_value)); - } - - all_tags - } - /// Tries to retrieve a tag and convert it to the desired type. pub fn get_tag_u32(&mut self, tag: Tag) -> TiffResult { self.get_tag(tag)?.into_u32()