diff options
author | 2013-11-19 21:37:42 +0100 | |
---|---|---|
committer | 2013-11-19 21:37:42 +0100 | |
commit | aee53bef0385841109432948dbf814907a7d2dca (patch) | |
tree | 456df2f3f4ca8dda60ca93e36eeb75a7dfa8a658 /src/idevicerestore.c | |
parent | 38e6975e2131b526d402c6f95cf4ba4acfbd997c (diff) | |
download | idevicerestore-aee53bef0385841109432948dbf814907a7d2dca.tar.gz idevicerestore-aee53bef0385841109432948dbf814907a7d2dca.tar.bz2 |
removed unused get_cpid/get_bdid and adapted for latest libirecovery changes
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 50 |
1 files changed, 0 insertions, 50 deletions
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: |