From 8a4cc41e2e2caa080713f321ad9c98338a0e50f5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 2 Feb 2019 01:11:57 +0100 Subject: Remove unused function build_manifest_get_build_identity() --- src/idevicerestore.c | 22 ---------------------- src/idevicerestore.h | 1 - 2 files changed, 23 deletions(-) (limited to 'src') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 20dfef4..9337763 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1486,28 +1486,6 @@ int get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, return 0; } -plist_t build_manifest_get_build_identity(plist_t build_manifest, uint32_t identity) { - // fetch build identities array from BuildManifest - plist_t build_identities_array = plist_dict_get_item(build_manifest, "BuildIdentities"); - if (!build_identities_array || plist_get_node_type(build_identities_array) != PLIST_ARRAY) { - error("ERROR: Unable to find build identities node\n"); - return NULL; - } - - // check and make sure this identity exists in buildmanifest - if (identity >= plist_array_get_size(build_identities_array)) { - return NULL; - } - - plist_t build_identity = plist_array_get_item(build_identities_array, identity); - if (!build_identity || plist_get_node_type(build_identity) != PLIST_DICT) { - error("ERROR: Unable to find build identities node\n"); - return NULL; - } - - return plist_copy(build_identity); -} - plist_t build_manifest_get_build_identity_for_model_with_restore_behavior(plist_t build_manifest, const char *hardware_model, const char *behavior) { plist_t build_identities_array = plist_dict_get_item(build_manifest, "BuildIdentities"); diff --git a/src/idevicerestore.h b/src/idevicerestore.h index 3eb4bfc..824c70f 100644 --- a/src/idevicerestore.h +++ b/src/idevicerestore.h @@ -86,7 +86,6 @@ void fixup_tss(plist_t tss); int build_manifest_get_identity_count(plist_t build_manifest); int build_manifest_check_compatibility(plist_t build_manifest, const char* product); void build_manifest_get_version_information(plist_t build_manifest, struct idevicerestore_client_t* client); -plist_t build_manifest_get_build_identity(plist_t build_manifest, uint32_t identity); plist_t build_manifest_get_build_identity_for_model(plist_t build_manifest, const char *hardware_model); plist_t build_manifest_get_build_identity_for_model_with_restore_behavior(plist_t build_manifest, const char *hardware_model, const char *behavior); int build_manifest_get_build_count(plist_t build_manifest); -- cgit v1.1-32-gdbae