From aee53bef0385841109432948dbf814907a7d2dca Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 19 Nov 2013 21:37:42 +0100 Subject: removed unused get_cpid/get_bdid and adapted for latest libirecovery changes --- src/idevicerestore.c | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 9bf37e0..e9580bd 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1182,56 +1182,6 @@ const char* check_product_type(struct idevicerestore_client_t* client) { return product_type; } -int get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid) { - switch (client->mode->index) { - case MODE_NORMAL: - if (normal_get_bdid(client, bdid) < 0) { - *bdid = 0; - return -1; - } - break; - - case MODE_DFU: - case MODE_RECOVERY: - if (recovery_get_bdid(client, bdid) < 0) { - *bdid = 0; - return -1; - } - break; - - default: - error("ERROR: Device is in an invalid state\n"); - return -1; - } - - return 0; -} - -int get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid) { - switch (client->mode->index) { - case MODE_NORMAL: - if (normal_get_cpid(client, cpid) < 0) { - client->device->chip_id = -1; - return -1; - } - break; - - case MODE_DFU: - case MODE_RECOVERY: - if (recovery_get_cpid(client, cpid) < 0) { - client->device->chip_id = -1; - return -1; - } - break; - - default: - error("ERROR: Device is in an invalid state\n"); - return -1; - } - - return 0; -} - int get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) { switch (client->mode->index) { case MODE_NORMAL: -- cgit v1.1-32-gdbae