diff options
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index d4fa7ca7d..6839724f8 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -355,9 +355,7 @@ void selection_reinit(struct selection *s, struct box *root) /* exported interface documented in desktop/selection.h */ void -selection_init(struct selection *s, - struct box *root, - const nscss_len_ctx *len_ctx) +selection_init(struct selection *s, struct box *root) { if (s->defined) { selection_clear(s, true); @@ -367,13 +365,6 @@ selection_init(struct selection *s, s->start_idx = 0; s->end_idx = 0; s->drag_state = DRAG_NONE; - if (len_ctx != NULL) { - s->len_ctx = *len_ctx; - } else { - s->len_ctx.vw = 0; - s->len_ctx.vh = 0; - s->len_ctx.root_style = NULL; - } selection_reinit(s, root); } |