Skip to content

Commit b3103e3

Browse files
committed
removed zerr method
method isn't used anymore
1 parent 3172973 commit b3103e3

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

precomp.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,32 +2788,6 @@ bool check_inf_result(int cb_pos, int windowbits, bool use_brute_parameters = fa
27882788
return false;
27892789
}
27902790

2791-
/* report a zlib or i/o error */
2792-
void zerr(int ret)
2793-
{
2794-
fputs("ERROR: ", stdout);
2795-
switch (ret) {
2796-
case Z_ERRNO:
2797-
if (ferror(stdin))
2798-
fputs("error reading stdin\n", stdout);
2799-
if (ferror(stdout))
2800-
fputs("error writing stdout\n", stdout);
2801-
printf("errno: %i\n", errno);
2802-
break;
2803-
case Z_STREAM_ERROR:
2804-
fputs("invalid compression level\n", stdout);
2805-
break;
2806-
case Z_DATA_ERROR:
2807-
fputs("invalid or incomplete deflate data\n", stdout);
2808-
break;
2809-
case Z_MEM_ERROR:
2810-
fputs("out of memory\n", stdout);
2811-
break;
2812-
case Z_VERSION_ERROR:
2813-
fputs("zlib version mismatch!\n", stdout);
2814-
}
2815-
}
2816-
28172791
int inf_bzip2(FILE *source, FILE *dest, long long& compressed_stream_size, long long& decompressed_stream_size) {
28182792
int ret;
28192793
unsigned have;

0 commit comments

Comments
 (0)