summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2015-07-28 22:31:30 -0700
committerJim Meyering <meyering@fb.com>2015-07-30 09:24:48 -0700
commit0f0c6c12169dd2bcb05909e20e10f94a1c54d69f (patch)
tree83356f3c4439e1f513a1bd25e1766e487cb40383 /inflate.c
parent5054e88a7934d5ff5ec14231c8b8676161bb45fa (diff)
downloadgzip-0f0c6c12169dd2bcb05909e20e10f94a1c54d69f.tar.gz
maint: remove dead code
This package has not been compilable with -DCRYPT since commit v1.4-82-g9d1b943. Remove final vestiges. * bits.c (copy_block) [CRYPT]: Remove #ifdef'd code. * inflate.c (NEXTBYTE) [CRYPT]: Likewise. Prompted by a report from Flávio Medeiros that HEADER and T might be used uninitialized.
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/inflate.c b/inflate.c
index 14bdfc0..c81879f 100644
--- a/inflate.c
+++ b/inflate.c
@@ -219,13 +219,7 @@ static ush mask_bits[] = {
#define GETBYTE() (inptr < insize ? inbuf[inptr++] : (wp = w, fill_inbuf(0)))
-#ifdef CRYPT
- uch cc;
-# define NEXTBYTE() \
- (decrypt ? (cc = GETBYTE(), zdecode(cc), cc) : GETBYTE())
-#else
-# define NEXTBYTE() (uch)GETBYTE()
-#endif
+#define NEXTBYTE() (uch)GETBYTE()
#define NEEDBITS(n) {while(k<(n)){b|=((ulg)NEXTBYTE())<<k;k+=8;}}
#define DUMPBITS(n) {b>>=(n);k-=(n);}