diff options
author | Martin Szulecki | 2010-07-08 19:14:19 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-08 19:14:19 +0200 |
commit | 17627444b5d61449a638a7937326d852a2705a11 (patch) | |
tree | b121b9072c9e9c755f26f6f4619d0a65ff3f385b | |
parent | a92e3de475368eea3c01372ce37d758a35e2a290 (diff) | |
download | idevicerestore-17627444b5d61449a638a7937326d852a2705a11.tar.gz idevicerestore-17627444b5d61449a638a7937326d852a2705a11.tar.bz2 |
Remove get_build_name() which was not working and has no real use
-rw-r--r-- | src/idevicerestore.c | 17 | ||||
-rw-r--r-- | src/idevicerestore.h | 1 |
2 files changed, 0 insertions, 18 deletions
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); |