aya: remove dead code

This logic moved in bb595c4e69. The
mutation here prevented the compiler from noticing.
pull/665/head
Tamir Duberstein 1 year ago
parent af54a819a3
commit d71d1e1993
No known key found for this signature in database

@ -889,17 +889,6 @@ impl Object {
}
fn parse_section(&mut self, section: Section) -> Result<(), ParseError> {
let mut parts = section.name.rsplitn(2, '/').collect::<Vec<_>>();
parts.reverse();
if parts.len() == 1
&& (parts[0] == "xdp"
|| parts[0] == "sk_msg"
|| parts[0] == "sockops"
|| parts[0] == "classifier")
{
parts.push(parts[0]);
}
self.section_infos
.insert(section.name.to_owned(), (section.index, section.size));
match section.kind {

Loading…
Cancel
Save