diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:09:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:09:11 +0000 |
commit | 582660bdf3fb8684b3eff46d6c2009d763761225 (patch) | |
tree | 1b040574a7d3db926ad64d4d36c7044d62f77fd7 /grid.c | |
parent | 62822b184887d858fb2f877b16b2ef3291b991c1 (diff) |
Miscellaneous unused functions, including one which was basically a
duplicate. Found by lint.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 27 |
1 files changed, 1 insertions, 26 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.4 2009/06/24 22:49:56 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.5 2009/06/25 06:15:04 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -430,31 +430,6 @@ grid_move_lines(struct grid *gd, u_int dy, u_int py, u_int ny) } } -/* Clear a group of cells. */ -void -grid_clear_cells(struct grid *gd, u_int px, u_int py, u_int nx) -{ - u_int xx; - - GRID_DEBUG(gd, "px=%u, py=%u, nx=%u", px, py, nx); - - if (nx == 0) - return; - - if (grid_check_x(gd, px) != 0) - return; - if (grid_check_x(gd, px + nx - 1) != 0) - return; - if (grid_check_y(gd, py) != 0) - return; - - for (xx = px; xx < px + nx; xx++) { - if (xx >= gd->size[py]) - break; - grid_put_cell(gd, xx, py, &grid_default_cell); - } -} - /* Move a group of cells. */ void grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx) |