summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c17
-rw-r--r--src/idevicerestore.h1
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);