diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 22:09:40 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | 2ea577c47ecca38a0b2d15b15d242c771ce59e29 (patch) | |
tree | fcc5dd27bcd3f5942bb6b58fd5c2d948c4b5ee5f /content/handlers/text | |
parent | a8c540ea597fb17426c5458fa464f9c505c3bda8 (diff) | |
download | netsurf-2ea577c47ecca38a0b2d15b15d242c771ce59e29.tar.gz netsurf-2ea577c47ecca38a0b2d15b15d242c771ce59e29.tar.bz2 |
remove unused is_html parameter to text selection routines
Diffstat (limited to 'content/handlers/text')
-rw-r--r-- | content/handlers/text/textplain.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c index 1165bcf5d..c91b81dbd 100644 --- a/content/handlers/text/textplain.c +++ b/content/handlers/text/textplain.c @@ -169,7 +169,7 @@ textplain_create_internal(textplain_content *c, lwc_string *encoding) c->formatted_width = 0; c->bw = NULL; - selection_prepare(&c->sel, (struct content *)c, false); + selection_prepare(&c->sel, (struct content *)c); return NSERROR_OK; @@ -1575,13 +1575,11 @@ static nserror textplain_create_selection(struct content *c, struct selection **sel_out) { struct selection *sel; - sel = selection_create(c, false); + sel = selection_create(c); if (sel == NULL) { return NSERROR_NOMEM; } - selection_init(sel); - *sel_out = sel; return NSERROR_OK; } |