Lose unused variable

svn path=/trunk/netsurf/; revision=4705
This commit is contained in:
John Mark Bell 2008-07-19 09:57:18 +00:00
parent b37bb0cbff
commit 89da5c5eed

View File

@ -867,8 +867,6 @@ bool browser_window_input_callback(struct browser_window *bw,
struct box *input = (struct box *)p; struct box *input = (struct box *)p;
struct box *text_box = input->children->children; struct box *text_box = input->children->children;
size_t box_offset = input->gadget->caret_box_offset; size_t box_offset = input->gadget->caret_box_offset;
size_t form_offset = input->gadget->caret_form_offset =
get_form_offset(input, text_box, box_offset);
size_t end_offset; size_t end_offset;
int pixel_offset = input->gadget->caret_pixel_offset; int pixel_offset = input->gadget->caret_pixel_offset;
int box_x, box_y; int box_x, box_y;
@ -878,7 +876,10 @@ bool browser_window_input_callback(struct browser_window *bw,
unsigned int utf8_len; unsigned int utf8_len;
bool to_textarea = false; bool to_textarea = false;
bool selection_exists = bw->sel->defined; bool selection_exists = bw->sel->defined;
input->gadget->caret_form_offset =
get_form_offset(input, text_box, box_offset);
selection_get_end(bw->sel, &end_offset); selection_get_end(bw->sel, &end_offset);
box_coords(input, &box_x, &box_y); box_coords(input, &box_x, &box_y);