diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 22:16:27 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | 1161029d2952e5e11062d750a0a681643574428e (patch) | |
tree | 0ae814b5a3776b30ee37f5f8cbaa2cdb2b59809e /content/handlers/text | |
parent | 2ea577c47ecca38a0b2d15b15d242c771ce59e29 (diff) | |
download | netsurf-1161029d2952e5e11062d750a0a681643574428e.tar.gz netsurf-1161029d2952e5e11062d750a0a681643574428e.tar.bz2 |
remove unecessary content handler specific selection creation
Diffstat (limited to 'content/handlers/text')
-rw-r--r-- | content/handlers/text/textplain.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c index c91b81dbd..6f034669a 100644 --- a/content/handlers/text/textplain.c +++ b/content/handlers/text/textplain.c @@ -1569,23 +1569,6 @@ textplain_textsearch_bounds(struct content *c, /** - * create a selection object suitable for this content - */ -static nserror -textplain_create_selection(struct content *c, struct selection **sel_out) -{ - struct selection *sel; - sel = selection_create(c); - if (sel == NULL) { - return NSERROR_NOMEM; - } - - *sel_out = sel; - return NSERROR_OK; -} - - -/** * invalidate a region based on offsets into the text cauing a redraw */ static nserror @@ -1655,7 +1638,6 @@ static const content_handler textplain_content_handler = { .textselection_redraw = textplain_textselection_redraw, .textselection_copy = textplain_textselection_copy, .textselection_get_end = textplain_textselection_get_end, - .create_selection = textplain_create_selection, .no_share = true, }; |