remove unused text selection interface

This commit is contained in:
Vincent Sanders 2020-05-23 23:40:29 +01:00
parent 5ce8f0baf1
commit 121c41a730
2 changed files with 5 additions and 24 deletions

View File

@ -255,26 +255,17 @@ struct selection *selection_create(struct content *c)
struct selection *sel; struct selection *sel;
sel = calloc(1, sizeof(struct selection)); sel = calloc(1, sizeof(struct selection));
if (sel) { 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; return sel;
} }
/* 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 */ /* exported interface documented in desktop/selection.h */
void selection_destroy(struct selection *s) void selection_destroy(struct selection *s)
{ {

View File

@ -56,16 +56,6 @@ void selection_drag_end(struct selection *s);
*/ */
struct selection *selection_create(struct content *c); struct selection *selection_create(struct content *c);
/**
* Prepare a newly created selection object for use.
*
* Used from text and html content handlers, riscos frontend
*
* \param s selection object
* \param c content
*/
void selection_prepare(struct selection *s, struct content *c);
/** /**
* Destroys a selection object clearing it if nesessary * Destroys a selection object clearing it if nesessary
* *