btf: remove unused methods

pull/1/head
Alessandro Decina 4 years ago
parent a5e19fc4ac
commit 14c98455a9

@ -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] {
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>)> {
self.relocations.iter()
}

Loading…
Cancel
Save