Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused field warnings in dyld_cache.rs. #406

Merged
merged 1 commit into from
Dec 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/read/macho/dyld_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ where
endian: E,
data: R,
subcaches: Vec<DyldSubCache<'data, E, R>>,
symbols_subcache: Option<DyldSubCache<'data, E, R>>,
header: &'data macho::DyldCacheHeader<E>,
mappings: &'data [macho::DyldCacheMappingInfo<E>],
images: &'data [macho::DyldCacheImageInfo<E>],
arch: Architecture,
Expand Down Expand Up @@ -78,7 +76,8 @@ where
}

// Read the .symbols SubCache, if present.
let symbols_subcache = match symbols_subcache_data_and_uuid {
// Other than the UUID verification, the symbols SubCache is currently unused.
let _symbols_subcache = match symbols_subcache_data_and_uuid {
Some((data, uuid)) => {
let sc_header = macho::DyldCacheHeader::<E>::parse(data)?;
if sc_header.uuid != uuid {
Expand All @@ -95,8 +94,6 @@ where
endian,
data,
subcaches,
symbols_subcache,
header,
mappings,
images,
arch,
Expand Down