Commit: 54b5f65cba70dfa53b71695c68f6bc0ceeafa541
Parent: deb0c6e8f924af59c95eb161a7705526c3de6167
Author: opask
Date: Thu, 23 Aug 2018 19:24:22 -0600
remove some unneeded code in compress.c
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/compress.c b/compress.c
@@ -2,10 +2,6 @@
#include <zlib.h>
-#ifdef write
-#undef write
-#endif
-
int decompressed_cache_size = 0;
static int display_error(struct terminal *term, unsigned char *msg, int *errp)
@@ -378,11 +374,6 @@ void free_decompressed_data(struct cache_entry *e)
void add_compress_methods(unsigned char **s, int *l)
{
- int cl = 0;
- if (!cl)
- cl = 1;
- else
- add_to_str(s, l, cast_uchar ", ");
add_to_str(s, l, cast_uchar "ZLIB");
#ifdef zlib_version
add_to_str(s, l, cast_uchar " (");