diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:09:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-12 21:09:41 +0100 |
commit | 3c7538a9f906e38e78be0300049f9e49839d7fd7 (patch) | |
tree | 318e996390f05db954969b2eb9cb71760f118e75 /content/handlers/html/html.c | |
parent | a8596a80aeb70acb05aba29f654df24210f50c19 (diff) | |
download | netsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.gz netsurf-3c7538a9f906e38e78be0300049f9e49839d7fd7.tar.bz2 |
hoist common text search out of content handlers
Diffstat (limited to 'content/handlers/html/html.c')
-rw-r--r-- | content/handlers/html/html.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index a3d426461..88098ebee 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -481,8 +481,6 @@ html_create_html_data(html_content *c, const http_parameter *params) c->selection_owner.none = true; c->focus_type = HTML_FOCUS_SELF; c->focus_owner.self = true; - c->search = NULL; - c->search_string = NULL; c->scripts_count = 0; c->scripts = NULL; c->jsthread = NULL; @@ -1326,10 +1324,6 @@ static nserror html_close(struct content *c) selection_clear(&htmlc->sel, false); - if (htmlc->search != NULL) { - content_textsearch_destroy(htmlc->search); - } - /* clear the html content reference to the browser window */ htmlc->bw = NULL; @@ -2204,8 +2198,6 @@ static const content_handler html_content_handler = { .get_contextual_content = html_get_contextual_content, .scroll_at_point = html_scroll_at_point, .drop_file_at_point = html_drop_file_at_point, - .search = html_search, - .search_clear = html_search_clear, .debug_dump = html_debug_dump, .debug = html_debug, .clone = html_clone, |