diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-22 17:31:20 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-22 17:31:20 +0000 |
commit | 6a979016919fc0b494a6f02176fa7ea1df93ad42 (patch) | |
tree | 5d6cf6e9e2d4414c7a0cb8c016d7adbe82b36ace /grid.c | |
parent | 39aa8b32b135ddff6f74dadc8f5adaabf4fe0694 (diff) |
Sync OpenBSD patchset 153:
Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by
lint.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -1,4 +1,4 @@ -/* $Id: grid.c,v 1.27 2009-07-17 12:35:01 nicm Exp $ */ +/* $Id: grid.c,v 1.28 2009-07-22 17:31:20 tcunha 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) |