aya: remove dead code

This logic moved in bb595c4e69. The
mutation here prevented the compiler from noticing.
reviewable/pr665/r1
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> { 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 self.section_infos
.insert(section.name.to_owned(), (section.index, section.size)); .insert(section.name.to_owned(), (section.index, section.size));
match section.kind { match section.kind {

Loading…
Cancel
Save