From: Philipp Stephani Date: Sat, 20 May 2017 14:38:22 +0000 (+0200) Subject: Remove unused function print_regions X-Git-Tag: emacs-26.0.90~521^2~322 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d79a4ea632733ac5a0b004728fde737c8952c441;p=emacs.git Remove unused function print_regions --- diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 97dcb435d37..3b1efa3ca30 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -346,31 +346,6 @@ print_region_list (void) print_region (r->address, r->size, r->protection, r->max_protection); } -static void -print_regions (void) -{ - task_t target_task = mach_task_self (); - vm_address_t address = (vm_address_t) 0; - vm_size_t size; - struct vm_region_basic_info info; - mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT; - mach_port_t object_name; - - printf (" address size prot maxp\n"); - - while (vm_region (target_task, &address, &size, VM_REGION_BASIC_INFO, - (vm_region_info_t) &info, &info_count, &object_name) - == KERN_SUCCESS && info_count == VM_REGION_BASIC_INFO_COUNT) - { - print_region (address, size, info.protection, info.max_protection); - - if (object_name != MACH_PORT_NULL) - mach_port_deallocate (target_task, object_name); - - address += size; - } -} - /* Build the list of regions that need to be dumped. Regions with addresses above VM_DATA_TOP are omitted. Adjacent regions with identical protection are merged. Note that non-writable regions