mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
remove unused text selection interface
This commit is contained in:
parent
5ce8f0baf1
commit
121c41a730
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user