From: nicm Date: Thu, 22 Feb 2018 11:42:41 +0000 (+0000) Subject: Remove an unused variable. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9f027091373e2c798c779b116ea167db864aff9a;p=openbsd Remove an unused variable. --- diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index cdbd8b6c7c4..b79149c3971 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.175 2018/02/05 08:21:54 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.176 2018/02/22 11:42:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -806,7 +806,6 @@ status_prompt_redraw(struct client *c) struct screen old_status; u_int i, offset, left, start, pcursor, pwidth, width; u_int lines; - size_t len; struct grid_cell gc, cursorgc; if (c->tty.sx == 0 || c->tty.sy == 0) @@ -820,10 +819,6 @@ status_prompt_redraw(struct client *c) } else screen_init(&c->status.status, c->tty.sx, lines, 0); - len = screen_write_strlen("%s", c->prompt_string); - if (len > c->tty.sx) - len = c->tty.sx; - if (c->prompt_mode == PROMPT_COMMAND) style_apply(&gc, s->options, "message-command-style"); else