From 96d3726a389929c037ef515ad77d39914896f458 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 21 Oct 2009 07:35:31 +0000 Subject: [PATCH] Removed unnecessary memory bandwidth consumption --- .../java/org/jboss/netty/util/internal/jzlib/Deflate.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/org/jboss/netty/util/internal/jzlib/Deflate.java b/src/main/java/org/jboss/netty/util/internal/jzlib/Deflate.java index d71ba40f8a..2d97276a61 100644 --- a/src/main/java/org/jboss/netty/util/internal/jzlib/Deflate.java +++ b/src/main/java/org/jboss/netty/util/internal/jzlib/Deflate.java @@ -253,12 +253,6 @@ final class Deflate { private void lm_init() { window_size = 2 * w_size; - // TODO No need to clear the head if called from deflateInit2 - head[hash_size - 1] = 0; - for (int i = 0; i < hash_size - 1; i ++) { - head[i] = 0; - } - // Set the default configuration parameters: max_lazy_match = Deflate.config_table[level].max_lazy; good_match = Deflate.config_table[level].good_length;