Skip to content

Commit

Permalink
Remove unused kept_syms_list struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
tux3 committed Aug 10, 2024
1 parent f47971a commit bc70a14
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/objects/syms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::path::{Path, PathBuf};
pub struct ObjectSyms {
globals: HashSet<String>,
undefineds: HashSet<String>,
pub kept_syms_list: String,
pub has_exported_symbols: bool,
pub deps: HashSet<PathBuf>,
}
Expand All @@ -21,7 +20,6 @@ impl ObjectSyms {
) -> Result<Self, MergeError> {
let mut globals = HashSet::new();
let mut undefineds = HashSet::new();
let mut kept_syms_list = String::new();
let mut has_exported_symbols = false;

let data = std::fs::read(object_path)?;
Expand Down Expand Up @@ -58,8 +56,6 @@ impl ObjectSyms {
};
if keep_sym_condition {
has_exported_symbols = true;
kept_syms_list += name;
kept_syms_list.push('\n');
break;
}
}
Expand All @@ -70,7 +66,6 @@ impl ObjectSyms {
globals,
undefineds,
has_exported_symbols,
kept_syms_list,
deps: Default::default(),
})
}
Expand Down

0 comments on commit bc70a14

Please sign in to comment.