Browse Source

aya: remove dead code

This logic moved in bb595c4e69ff0c72c8327e7f64d43ca7a4bc16a3. The
mutation here prevented the compiler from noticing.
Tamir Duberstein 1 year ago
parent
commit
d71d1e1
1 changed files with 0 additions and 11 deletions
  1. 0 11
      aya-obj/src/obj.rs

+ 0 - 11
aya-obj/src/obj.rs

@@ -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 {