diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:40:29 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:40:29 +0100 |
commit | 121c41a730c257e59fd69eec0b80fe2b905a46f7 (patch) | |
tree | 4853013e7da38151440c610a59d5b5768f392652 /desktop/selection.c | |
parent | 5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a (diff) | |
download | netsurf-121c41a730c257e59fd69eec0b80fe2b905a46f7.tar.gz netsurf-121c41a730c257e59fd69eec0b80fe2b905a46f7.tar.bz2 |
remove unused text selection interface
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 4d3d335ef..417a504b3 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -255,7 +255,11 @@ struct selection *selection_create(struct content *c) struct selection *sel; sel = calloc(1, sizeof(struct selection)); if (sel) { - selection_prepare(sel, c); + sel->c = c; + sel->root = NULL; + sel->drag_state = DRAG_NONE; + sel->max_idx = 0; + selection_clear(sel, false); } return sel; @@ -263,19 +267,6 @@ struct selection *selection_create(struct content *c) /* exported interface documented in desktop/selection.h */ -void selection_prepare(struct selection *s, struct content *c) -{ - if (s) { - s->c = c; - s->root = NULL; - s->drag_state = DRAG_NONE; - s->max_idx = 0; - selection_clear(s, false); - } -} - - -/* exported interface documented in desktop/selection.h */ void selection_destroy(struct selection *s) { if (s == NULL) { |