From 21205d0447d82d45de5e32e4b244da18a0ecce47 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 30 Jan 2016 22:20:09 -0600 Subject: [PATCH] compress: delete deflate_init_length_slot_fast() --- src/deflate_compress.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/deflate_compress.c b/src/deflate_compress.c index ea76f7f..c7983ba 100644 --- a/src/deflate_compress.c +++ b/src/deflate_compress.c @@ -2344,28 +2344,6 @@ deflate_compress_near_optimal(struct deflate_compressor * restrict c, #endif /* SUPPORT_NEAR_OPTIMAL_PARSING */ -#if 0 -/* Initialize c->length_slot_fast. */ -static void -deflate_init_length_slot_fast(struct deflate_compressor *c) -{ - unsigned length_slot; - unsigned length; - unsigned length_end; - - for (length_slot = 0; - length_slot < ARRAY_LEN(deflate_length_slot_base); - length_slot++) - { - length = deflate_length_slot_base[length_slot]; - length_end = length + (1 << deflate_extra_length_bits[length_slot]); - do { - c->length_slot_fast[length] = length_slot; - } while (++length != length_end); - } -} -#endif - /* Initialize c->offset_slot_fast. */ static void deflate_init_offset_slot_fast(struct deflate_compressor *c)