From 17627444b5d61449a638a7937326d852a2705a11 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 8 Jul 2010 19:14:19 +0200 Subject: Remove get_build_name() which was not working and has no real use --- src/idevicerestore.c | 17 ----------------- src/idevicerestore.h | 1 - 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 03845fe..7312279 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -190,7 +190,6 @@ int main(int argc, char* argv[]) { // for this build identity, so check the next one continue; } - info("[%d] %s\n", i, get_build_name(buildmanifest, i)); valid_builds++; } } @@ -527,22 +526,6 @@ int get_build_count(plist_t buildmanifest) { return plist_array_get_size(build_identities_array); } -const char* get_build_name(plist_t build_identity, int identity) { - plist_t manifest_node = plist_dict_get_item(build_identity, "Manifest"); - if (!manifest_node || plist_get_node_type(manifest_node) != PLIST_DICT) { - error("ERROR: Unable to find restore manifest\n"); - return NULL; - } - - plist_t filesystem_info_node = plist_dict_get_item(manifest_node, "Info"); - if (!filesystem_info_node || plist_get_node_type(filesystem_info_node) != PLIST_DICT) { - error("ERROR: Unable to find filesystem info node\n"); - return NULL; - } - return NULL; -} - - int extract_filesystem(struct idevicerestore_client_t* client, const char* ipsw, plist_t build_identity, char** filesystem) { char* filename = NULL; diff --git a/src/idevicerestore.h b/src/idevicerestore.h index d3d89a0..407c0db 100644 --- a/src/idevicerestore.h +++ b/src/idevicerestore.h @@ -35,7 +35,6 @@ void usage(int argc, char* argv[]); int check_mode(struct idevicerestore_client_t* client); int check_device(struct idevicerestore_client_t* client); int get_build_count(plist_t buildmanifest); -const char* get_build_name(plist_t build_identity, int identity); int get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid); int get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid); int get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid); -- cgit v1.1-32-gdbae