Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/121c41a730c257e59fd69eec0b80fe2b905a46f7
...commit
http://git.netsurf-browser.org/netsurf.git/commit/121c41a730c257e59fd69eec0b80fe2b905a46f7
...tree
http://git.netsurf-browser.org/netsurf.git/tree/121c41a730c257e59fd69eec0b80fe2b905a46f7
The branch, master has been updated
via 121c41a730c257e59fd69eec0b80fe2b905a46f7 (commit)
from 5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=121c41a730c257e59fd69eec0b80fe2b905a46f7
commit 121c41a730c257e59fd69eec0b80fe2b905a46f7
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
remove unused text selection interface
diff --git a/desktop/selection.c b/desktop/selection.c
index 4d3d335..417a504 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) {
diff --git a/desktop/selection.h b/desktop/selection.h
index 1b8d91c..8cd523f 100644
--- a/desktop/selection.h
+++ b/desktop/selection.h
@@ -57,16 +57,6 @@ void selection_drag_end(struct selection *s);
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
*
* Used from content textsearch
-----------------------------------------------------------------------
Summary of changes:
desktop/selection.c | 19 +++++--------------
desktop/selection.h | 10 ----------
2 files changed, 5 insertions(+), 24 deletions(-)
diff --git a/desktop/selection.c b/desktop/selection.c
index 4d3d335..417a504 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) {
diff --git a/desktop/selection.h b/desktop/selection.h
index 1b8d91c..8cd523f 100644
--- a/desktop/selection.h
+++ b/desktop/selection.h
@@ -57,16 +57,6 @@ void selection_drag_end(struct selection *s);
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
*
* Used from content textsearch
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]