From 1161029d2952e5e11062d750a0a681643574428e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 May 2020 22:16:27 +0100 Subject: remove unecessary content handler specific selection creation --- content/handlers/text/textplain.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'content/handlers/text/textplain.c') 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 @@ -1568,23 +1568,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 */ @@ -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, }; -- cgit v1.2.3