Module: wine Branch: master Commit: 41d741761f47d8aa2af8268b4ed5ef35f23b479b URL: http://source.winehq.org/git/wine.git/?a=commit;h=41d741761f47d8aa2af8268b4e...
Author: Ken Thomases ken@codeweavers.com Date: Wed Jun 24 17:13:57 2015 -0500
dbghelp: Remove the unused arch_size field of struct macho_file_map.
It was set, but never read.
---
dlls/dbghelp/macho_module.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index 54801ef..0e353e7 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -129,7 +129,6 @@ struct macho_file_map /* The portion of the file which is this architecture. mach_header was * read from arch_offset. */ unsigned arch_offset; - unsigned arch_size;
/* The range of address space covered by all segments. */ size_t segs_start; @@ -501,7 +500,6 @@ static BOOL macho_map_file(const WCHAR* filenameW, struct macho_file_map* fmap) if (swap_ulong_be_to_host(fat_arch.cputype) == TARGET_CPU_TYPE) { fmap->arch_offset = swap_ulong_be_to_host(fat_arch.offset); - fmap->arch_size = swap_ulong_be_to_host(fat_arch.size); break; } } @@ -511,7 +509,6 @@ static BOOL macho_map_file(const WCHAR* filenameW, struct macho_file_map* fmap) else { fmap->arch_offset = 0; - fmap->arch_size = statbuf.st_size; TRACE("... not a fat header\n"); }