diff options
author | Carl Worth <cworth@cworth.org> | 2006-03-23 15:36:41 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-03-23 15:36:41 -0800 |
commit | 3259efed7690670754d7c1e76176ff26464111c3 (patch) | |
tree | 262518782f9081e14de6157e530b7e5c1070a369 /src/cairo-lzw.c | |
parent | bcfe344608150aa56b1cb37dbc774455bfcf6830 (diff) | |
download | cairo-3259efed7690670754d7c1e76176ff26464111c3.tar.gz |
_cairo_lzw_compress: Remove unused code which we had for testing
conformance with the LZW compression from libtiff.
Diffstat (limited to 'src/cairo-lzw.c')
-rw-r--r-- | src/cairo-lzw.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/cairo-lzw.c b/src/cairo-lzw.c index 1de618cc5..2a4a8e1e7 100644 --- a/src/cairo-lzw.c +++ b/src/cairo-lzw.c @@ -370,19 +370,6 @@ _cairo_lzw_compress (unsigned char *data, unsigned long *size_in_out) LZW_SYMBOL_SET_CODE (*slot, code_next++, prev, next); - /* The libtiff code detects a full table and clears it a bit - * earlier than strictly necessary. Here is the code to do - * that which might be useful in doing correctness comparisons - * against the output of libtiff. */ -#if CLEAR_TABLE_EARLY_FOR_IDENTICAL_OUTPUT_COMPAREED_TO_LIBTIFF - if (code_next == LZW_BITS_BOUNDARY(LZW_BITS_MAX) - 1) { - _lzw_symbol_table_init (&table); - _lzw_buf_store_bits (&buf, LZW_CODE_CLEAR_TABLE, code_bits); - code_bits = LZW_BITS_MIN; - code_next = LZW_CODE_FIRST; - } -#endif - if (code_next > LZW_BITS_BOUNDARY(code_bits)) { code_bits++; |