From 6108d210d508e754904c46f687adbc87ab98dc78 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 May 2020 22:59:40 +0100 Subject: remove all direct access to selection structure --- content/textsearch.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'content/textsearch.c') diff --git a/content/textsearch.c b/content/textsearch.c index 056da2bf6..18f9073dc 100644 --- a/content/textsearch.c +++ b/content/textsearch.c @@ -165,7 +165,6 @@ static void free_matches(struct textsearch_context *textsearch) static void search_show_all(bool all, struct textsearch_context *context) { struct list_entry *a; - nserror res; for (a = context->found->next; a; a = a->next) { bool add = true; @@ -628,7 +627,6 @@ content_textsearch_ishighlighted(struct textsearch_context *textsearch, for (cur = textsearch->found->next; cur != NULL; cur = cur->next) { if (cur->sel && - selection_defined(cur->sel) && selection_highlighted(cur->sel, start_offset, end_offset, -- cgit v1.2.1