From: Adam Dickmeiss Date: Wed, 13 Nov 2013 10:14:30 +0000 (+0100) Subject: Remove unreachable code from relevance_snippet X-Git-Tag: v1.6.37~10 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1e4214f1b29b20d14bfd943d940cf99f1405d16d;p=pazpar2-moved-to-github.git Remove unreachable code from relevance_snippet --- diff --git a/src/relevance.c b/src/relevance.c index 54bebb5..08527ae 100644 --- a/src/relevance.c +++ b/src/relevance.c @@ -102,15 +102,7 @@ int relevance_snippet(struct relevance *r, for (; entries; entries = entries->next, i++) { if (*norm_str && !strcmp(norm_str, entries->norm_str)) - { break; - if (!highlight) - { - highlight = 1; - wrbuf_puts(w_snippet, ""); - } - break; - } } if (entries) {