Remove unreachable code from relevance_snippet
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Nov 2013 10:14:30 +0000 (11:14 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 13 Nov 2013 10:14:30 +0000 (11:14 +0100)
src/relevance.c

index 54bebb5..08527ae 100644 (file)
@@ -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, "<match>");
-                }
-                break;
-            }
         }
         if (entries)
         {