diff options
author | Amin Hassani <ahassani@google.com> | 2018-02-28 10:19:40 -0800 |
---|---|---|
committer | Amin Hassani <ahassani@google.com> | 2018-02-28 15:31:34 -0800 |
commit | 20bdc7cbf417b5cc93fb6abe110c233cde4b7cd0 (patch) | |
tree | 7eef3e7a0c4fafe195e6b5cc9a519ca4161721aa | |
parent | 06c3d5304fe58884698b41bede7305a685207642 (diff) | |
download | platform_external_puffin-20bdc7cbf417b5cc93fb6abe110c233cde4b7cd0.tar.gz platform_external_puffin-20bdc7cbf417b5cc93fb6abe110c233cde4b7cd0.tar.bz2 platform_external_puffin-20bdc7cbf417b5cc93fb6abe110c233cde4b7cd0.zip |
Remove a check and a warning log
There has been encounters of huffman tables with all literals and not
length/distance. This CL removes the check and warning produced when this
situation happens so the LOGs do not get dirty.
Bug: none
Test: unittests
Change-Id: If26723818247f0cebcdc3aa2082fc63bbe85eb16
-rw-r--r-- | src/huffman_table.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/huffman_table.cc b/src/huffman_table.cc index 1edb268..6e711c6 100644 --- a/src/huffman_table.cc +++ b/src/huffman_table.cc @@ -65,13 +65,6 @@ bool HuffmanTable::InitHuffmanCodes(const Buffer& lens, size_t* max_bits) { } } - // No codes found! However, This is not invalid because you can have no - // length/distance codes in a block (all literals). - if (lens.size() == len_count_[0]) { - LOG(WARNING) - << "No non-zero lengths are given in the Huffman code Length array."; - } - // Check for oversubscribed code lengths. (A code with length 'L' cannot have // more than 2^L items. for (size_t idx = 1; idx <= *max_bits; idx++) { |