diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-04-29 13:41:27 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-04-29 13:41:27 +0100 |
commit | a467363d5edc7998b1d837e204a0f5a550b2133c (patch) | |
tree | 457a1beb00936395f98e689a17194e55755502d2 /desktop | |
parent | 1dd8601e3f23b079912111e66e07d89378c30c5a (diff) | |
download | netsurf-a467363d5edc7998b1d837e204a0f5a550b2133c.tar.gz netsurf-a467363d5edc7998b1d837e204a0f5a550b2133c.tar.bz2 |
Remove block of code that have been commented out for years.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/selection.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 216462c96..b2a73f82e 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -171,16 +171,6 @@ void selection_reinit(struct selection *s, struct box *root) root_idx = 0; -// if (s->root == root) { -// /* keep the same number space as before, because we want -// to keep the selection too */ -// root_idx = (s->max_idx & 0xF0000000U); -// } -// else { -// static int next_idx = 0; -// root_idx = (next_idx++) << 28; -// } - s->root = root; if (root) { s->max_idx = selection_label_subtree(root, root_idx); @@ -337,13 +327,6 @@ bool selection_click(struct selection *s, browser_mouse_state mouse, gui_start_selection(top->window); } - /* Selection should be cleared when button is released but in - * the RO interface click is the same as press */ -// else if (!pos && (mouse & BROWSER_MOUSE_CLICK_1)) { -// /* clear selection */ -// selection_clear(s, true); -// s->drag_state = DRAG_NONE; -// } else if (mouse & BROWSER_MOUSE_CLICK_2) { /* ignore Adjust clicks when there's no selection */ @@ -1074,11 +1057,6 @@ bool selection_highlighted(const struct selection *s, *end_idx = min(end, s->end_idx) - start; return true; - -// assert(box); -// assert(IS_TEXT(box)); - -// return selected_part(box, s->start_idx, s->end_idx, start_idx, end_idx); } |