mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-02-02 05:51:05 +00:00
[Mac] Remove unused host_info call and supporting calls.
R=blundell@chromium.org Review URL: https://breakpad.appspot.com/2684002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1329 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
31845f2bce
commit
9eb13afd54
|
@ -202,17 +202,6 @@ int __breakpad_fdnlist(int fd, nlist_type *list, const char **symbolNames,
|
||||||
if (CFSwapInt32BigToHost(*((uint32_t *)&buf)) == FAT_MAGIC ||
|
if (CFSwapInt32BigToHost(*((uint32_t *)&buf)) == FAT_MAGIC ||
|
||||||
/* The following is the big-endian ppc64 check */
|
/* The following is the big-endian ppc64 check */
|
||||||
*((unsigned int *)&buf) == FAT_MAGIC) {
|
*((unsigned int *)&buf) == FAT_MAGIC) {
|
||||||
/* Get host info */
|
|
||||||
host_t host = mach_host_self();
|
|
||||||
unsigned hic = HOST_BASIC_INFO_COUNT;
|
|
||||||
struct host_basic_info hbi;
|
|
||||||
kern_return_t kr;
|
|
||||||
if ((kr = host_info(host, HOST_BASIC_INFO,
|
|
||||||
(host_info_t)(&hbi), &hic)) != KERN_SUCCESS) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
mach_port_deallocate(mach_task_self(), host);
|
|
||||||
|
|
||||||
/* Read in the fat header */
|
/* Read in the fat header */
|
||||||
struct fat_header fh;
|
struct fat_header fh;
|
||||||
if (lseek(fd, 0, SEEK_SET) == -1) {
|
if (lseek(fd, 0, SEEK_SET) == -1) {
|
||||||
|
|
Loading…
Reference in a new issue