summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2013-02-22 20:51:56 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2013-02-22 20:51:56 +0000
commit9303fc56dcaed05c9847fc81b585c8cf484e8a57 (patch)
tree0517a5becb735df2d84c531084a03ba642fa8ca0
parent5d34d48a4b447497018da3f943b3bd2d9bf91d5d (diff)
downloadnetsurf-9303fc56dcaed05c9847fc81b585c8cf484e8a57.tar.gz
netsurf-9303fc56dcaed05c9847fc81b585c8cf484e8a57.tar.bz2
Remove redundant code.
-rw-r--r--desktop/selection.c8
-rw-r--r--render/form.h5
2 files changed, 0 insertions, 13 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index 536df5c84..216462c96 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -943,14 +943,6 @@ void selection_set_start(struct selection *s, unsigned offset)
s->start_idx = offset;
s->defined = (s->start_idx < s->end_idx);
- if (s->defined && s->root && s->root->gadget) {
- /* update the caret text_box and offset so that it stays at the
- * beginning of the selection */
- s->root->gadget->caret_text_box = selection_get_start(s,
- &s->root->gadget->caret_box_offset);
- assert(s->root->gadget->caret_text_box != NULL);
- }
-
if (was_defined) {
if (offset < old_start)
selection_redraw(s, s->start_idx, old_start);
diff --git a/render/form.h b/render/form.h
index b5f6a7e2c..9088ca293 100644
--- a/render/form.h
+++ b/render/form.h
@@ -94,11 +94,6 @@ struct form_control {
bool disabled; /**< Whether control is disabled */
struct box *box; /**< Box for control */
- /** Caret details. */
- struct box *caret_inline_container;
- struct box *caret_text_box;
- size_t caret_box_offset, caret_form_offset;
- int caret_pixel_offset;
unsigned int length; /**< Number of characters in control */
unsigned int maxlength; /**< Maximum characters permitted */