Browse Source

btf: remove unused methods

Alessandro Decina 4 years ago
parent
commit
14c98455a9
1 changed files with 0 additions and 24 deletions
  1. 0 24
      aya/src/obj/btf/btf.rs

+ 0 - 24
aya/src/obj/btf/btf.rs

@@ -317,34 +317,10 @@ impl BtfExt {
         }
         }
     }
     }
 
 
-    fn func_info_data(&self) -> &[u8] {
-        self.info_data(self.header.func_info_off, self.header.func_info_len)
-    }
-
-    fn line_info_data(&self) -> &[u8] {
-        self.info_data(self.header.line_info_off, self.header.line_info_len)
-    }
-
     fn core_relo_data(&self) -> &[u8] {
     fn core_relo_data(&self) -> &[u8] {
         self.info_data(self.header.core_relo_off, self.header.core_relo_len)
         self.info_data(self.header.core_relo_off, self.header.core_relo_len)
     }
     }
 
 
-    pub(crate) fn func_info(&self) -> SecInfoIter<'_> {
-        SecInfoIter::new(
-            self.func_info_data(),
-            self.func_info_rec_size,
-            self.endianness,
-        )
-    }
-
-    pub(crate) fn line_info(&self) -> SecInfoIter<'_> {
-        SecInfoIter::new(
-            self.line_info_data(),
-            self.line_info_rec_size,
-            self.endianness,
-        )
-    }
-
     pub(crate) fn relocations(&self) -> impl Iterator<Item = &(u32, Vec<Relocation>)> {
     pub(crate) fn relocations(&self) -> impl Iterator<Item = &(u32, Vec<Relocation>)> {
         self.relocations.iter()
         self.relocations.iter()
     }
     }