summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-21 18:40:30 +0000
committernicm <nicm@openbsd.org>2009-07-21 18:40:30 +0000
commit2bda206171aa0517abfcb5f510e1635c25974bcb (patch)
treead30b44f86483e4a9b044d699827b61b63b0aec4 /usr.bin/tmux/grid.c
parent__progname is not const, pointed out by deraadt. (diff)
downloadwireguard-openbsd-2bda206171aa0517abfcb5f510e1635c25974bcb.tar.xz
wireguard-openbsd-2bda206171aa0517abfcb5f510e1635c25974bcb.zip
Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by
lint.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r--usr.bin/tmux/grid.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index d09d2d1684e..be7259a52dc 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.8 2009/07/16 07:34:37 nicm Exp $ */
+/* $OpenBSD: grid.c,v 1.9 2009/07/21 18:40:30 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -199,20 +199,6 @@ grid_scroll_line(struct grid *gd)
gd->hsize++;
}
-/* Reduce line to fit to cell. */
-void
-grid_reduce_line(struct grid *gd, u_int py, u_int sx)
-{
- if (sx < gd->size[py]) {
- gd->data[py] = xrealloc(gd->data[py], sx, sizeof **gd->data);
- gd->size[py] = sx;
- }
- if (sx < gd->usize[py]) {
- gd->udata[py] = xrealloc(gd->udata[py], sx, sizeof **gd->udata);
- gd->usize[py] = sx;
- }
-}
-
/* Expand line to fit to cell. */
void
grid_expand_line(struct grid *gd, u_int py, u_int sx)