From 23c4b03c56c657fccd9ac82a2985a8063a40e02a Mon Sep 17 00:00:00 2001 From: devinacker Date: Wed, 23 Oct 2013 10:51:58 -0400 Subject: [PATCH] remove some old stupid code --- compress.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/compress.c b/compress.c index 2d24f2a..ac1eacd 100644 --- a/compress.c +++ b/compress.c @@ -246,8 +246,6 @@ rle_t rle_check (uint8_t *start, uint8_t *current, uint32_t insize, int fast) { if (current[size] != current[0]) break; // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 2 && size > candidate.size) { candidate.size = size; candidate.data = current[0]; @@ -264,8 +262,6 @@ rle_t rle_check (uint8_t *start, uint8_t *current, uint32_t insize, int fast) { } // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 2 && size > candidate.size) { candidate.size = size; candidate.data = first; @@ -282,8 +278,6 @@ rle_t rle_check (uint8_t *start, uint8_t *current, uint32_t insize, int fast) { if (current[size] != (current[0] + size)) break; // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 2 && size > candidate.size) { candidate.size = size; candidate.data = current[0]; @@ -309,8 +303,6 @@ backref_t ref_search (uint8_t *start, uint8_t *current, uint32_t insize, int fas if (pos[size] != current[size]) break; // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 3 && size > candidate.size) { candidate.size = size; candidate.offset = pos - start; @@ -327,8 +319,6 @@ backref_t ref_search (uint8_t *start, uint8_t *current, uint32_t insize, int fas if (pos[size] != rotate(current[size])) break; // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 3 && size > candidate.size) { candidate.size = size; candidate.offset = pos - start; @@ -342,8 +332,6 @@ backref_t ref_search (uint8_t *start, uint8_t *current, uint32_t insize, int fas if (start[pos - start - size] != current[size]) break; // if this is better than the current candidate, use it - //if (size > LONG_RUN_SIZE) size = LONG_RUN_SIZE; - if (size > 3 && size > candidate.size) { candidate.size = size; candidate.offset = pos - start;