From 044ebf195237c2c5ea13df5f1f93d61eaacf9d7b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Jul 2009 18:40:30 +0000 Subject: Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by lint. --- grid.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'grid.c') diff --git a/grid.c b/grid.c index 0fbdbd0a..8842371a 100644 --- a/grid.c +++ b/grid.c @@ -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) -- cgit