]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove s->method since it is always set to the same value and never read.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sat, 29 Aug 2020 08:40:27 +0000 (10:40 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 31 Aug 2020 11:22:54 +0000 (13:22 +0200)
deflate.c
deflate.h

index 6b79939badfeab61b63214c5728b17c037030fff..eafacd62aef4aa94040500a51f78e72f33f4a399 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -391,7 +391,6 @@ int32_t Z_EXPORT PREFIX(deflateInit2_)(PREFIX3(stream) *strm, int32_t level, int
 
     s->level = level;
     s->strategy = strategy;
-    s->method = (unsigned char)method;
     s->block_open = 0;
     s->reproducible = 0;
 
index a8d7aad3658e65472e0da5569b11b591d1b93860..6324d616fb0149a536b72084aa514d93a2bdbfd4 100644 (file)
--- a/deflate.h
+++ b/deflate.h
@@ -114,7 +114,6 @@ typedef struct internal_state {
     uint32_t             gzindex;          /* where in extra, name, or comment */
     PREFIX(gz_headerp)   gzhead;           /* gzip header information to write */
     int                  status;           /* as the name implies */
-    unsigned char        method;           /* can only be DEFLATED */
     int                  last_flush;       /* value of flush param for previous deflate call */
 
                 /* used by deflate.c: */