summaryrefslogtreecommitdiffstats
path: root/src
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
parente7ccb0a28559673e994e71e98412b31ef15d6530 (diff)
downloadidevicerestore-8a4cc41e2e2caa080713f321ad9c98338a0e50f5.tar.gz
idevicerestore-8a4cc41e2e2caa080713f321ad9c98338a0e50f5.tar.bz2
Remove unused function build_manifest_get_build_identity()
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c22
-rw-r--r--src/idevicerestore.h1
2 files changed, 0 insertions, 23 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");
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);