From 4c4c2a558374535197f67c4f70690673ee2f90fd Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Tue, 31 May 2011 20:37:11 -0500 Subject: [PATCH] Remove dead code from the BoyerMoore implementation --- src/util-spm-bm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-spm-bm.c b/src/util-spm-bm.c index afce361e0a..e4c3bffeea 100644 --- a/src/util-spm-bm.c +++ b/src/util-spm-bm.c @@ -295,7 +295,7 @@ uint8_t *BoyerMoore(uint8_t *x, int32_t m, uint8_t *y, int32_t n, int32_t *bmGs, if (i < 0) { return y + j; - j += bmGs[0]; + //j += bmGs[0]; } else { // printf("%c", y[i+j]); j += (m1 = bmGs[i]) > (m2 = bmBc[y[i + j]] - m + 1 + i)? m1: m2;