From a467363d5edc7998b1d837e204a0f5a550b2133c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 29 Apr 2013 13:41:27 +0100 Subject: Remove block of code that have been commented out for years. --- desktop/selection.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'desktop/selection.c') 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); } -- cgit v1.2.3