diff options
author | Nikias Bassen | 2023-04-13 00:33:13 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-04-13 00:33:13 +0200 |
commit | bc617712ed2fdda6338e9f057ba7396d424d88e4 (patch) | |
tree | b06cd682c4df352a45e2f782d5bbf9b5714e58c2 | |
parent | 7b89019fbb81ce64e1c1d259c5746544c8e8eeea (diff) | |
download | idevicerestore-bc617712ed2fdda6338e9f057ba7396d424d88e4.tar.gz idevicerestore-bc617712ed2fdda6338e9f057ba7396d424d88e4.tar.bz2 |
img4: Remove unused debug code
-rw-r--r-- | src/img4.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -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; |