diff --git a/src/MobileDevice.h b/src/MobileDevice.h index 8c9ff91..1862bc1 100644 --- a/src/MobileDevice.h +++ b/src/MobileDevice.h @@ -196,9 +196,6 @@ mach_error_t AMDeviceNotificationSubscribe(am_device_notification_callback dn_unknown3, struct am_device_notification **notification); -mach_error_t AMDeviceNotificationUnsubscribe(am_device_notification subscription); - - /* Connects to the iPhone. Pass in the am_device structure that the * notification callback will give to you. * diff --git a/src/ios-deploy.c b/src/ios-deploy.c index 3f76daa..c1b10dc 100644 --- a/src/ios-deploy.c +++ b/src/ios-deploy.c @@ -1720,7 +1720,6 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar switch (info->msg) { case ADNCI_MSG_CONNECTED: if(device_id != NULL || !debug || AMDeviceGetInterfaceType(info->dev) != 2) { - AMDeviceNotificationUnsubscribe(*notify); NSLogVerbose(@"Handling device type: %d", AMDeviceGetInterfaceType(info->dev)); handle_device(info->dev); } else if(best_device_match == NULL) {