summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-04-13 00:33:13 +0200
committerGravatar Nikias Bassen2023-04-13 00:33:13 +0200
commitbc617712ed2fdda6338e9f057ba7396d424d88e4 (patch)
treeb06cd682c4df352a45e2f782d5bbf9b5714e58c2
parent7b89019fbb81ce64e1c1d259c5746544c8e8eeea (diff)
downloadidevicerestore-bc617712ed2fdda6338e9f057ba7396d424d88e4.tar.gz
idevicerestore-bc617712ed2fdda6338e9f057ba7396d424d88e4.tar.bz2
img4: Remove unused debug code
-rw-r--r--src/img4.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/img4.c b/src/img4.c
index 3a74c5e..c21a075 100644
--- a/src/img4.c
+++ b/src/img4.c
@@ -394,37 +394,6 @@ static const char *_img4_get_component_tag(const char *compname)
return NULL;
}
-static void hexdump(char* data, int length)
-{
- int i;
- int j;
- unsigned char c;
-
- for (i = 0; i < length; i += 16) {
- fprintf(stderr, "%04x: ", i);
- for (j = 0; j < 16; j++) {
- if (i + j >= length) {
- fprintf(stderr, " ");
- continue;
- }
- fprintf(stderr, "%02x ", *(data + i + j) & 0xff);
- }
- fprintf(stderr, " | ");
- for (j = 0; j < 16; j++) {
- if (i + j >= length)
- break;
- c = *(data + i + j);
- if ((c < 32) || (c > 127)) {
- fprintf(stderr, ".");
- continue;
- }
- fprintf(stderr, "%c", c);
- }
- fprintf(stderr, "\n");
- }
- fprintf(stderr, "\n");
-}
-
int img4_stitch_component(const char* component_name, const unsigned char* component_data, unsigned int component_size, plist_t tss_response, unsigned char** img4_data, unsigned int *img4_size)
{
unsigned char* magic_header = NULL;