summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-02-02 01:11:57 +0100
committerGravatar Nikias Bassen2019-02-02 01:11:57 +0100
commit8a4cc41e2e2caa080713f321ad9c98338a0e50f5 (patch)
treea47deeb467d224f1c192580c15c38013b3e87af3 /src/idevicerestore.c
parente7ccb0a28559673e994e71e98412b31ef15d6530 (diff)
downloadidevicerestore-8a4cc41e2e2caa080713f321ad9c98338a0e50f5.tar.gz
idevicerestore-8a4cc41e2e2caa080713f321ad9c98338a0e50f5.tar.bz2
Remove unused function build_manifest_get_build_identity()
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c22
1 files changed, 0 insertions, 22 deletions
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");