summaryrefslogtreecommitdiff
path: root/desktop/selection.c
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 /desktop/selection.c
parent5d34d48a4b447497018da3f943b3bd2d9bf91d5d (diff)
downloadnetsurf-9303fc56dcaed05c9847fc81b585c8cf484e8a57.tar.gz
netsurf-9303fc56dcaed05c9847fc81b585c8cf484e8a57.tar.bz2
Remove redundant code.
Diffstat (limited to 'desktop/selection.c')
-rw-r--r--desktop/selection.c8
1 files changed, 0 insertions, 8 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);