Remove redundant code.

This commit is contained in:
John-Mark Bell 2013-02-22 20:51:56 +00:00
parent 5d34d48a4b
commit 9303fc56dc
2 changed files with 0 additions and 13 deletions

View File

@ -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);

View File

@ -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 */