summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-25 06:15:04 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-25 06:15:04 +0000
commit1675ddb4d1880b834a2bd0bbae5a9ffa17eb596d (patch)
treee0947101a25be132a7c964959cf884705f2f1076 /grid.c
parented8350422e9472b657034367f39ab133f7913862 (diff)
Miscellaneous unused functions, including one which was basically a
duplicate. Found by lint.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/grid.c b/grid.c
index 071248ee..2df28fd7 100644
--- a/grid.c
+++ b/grid.c
@@ -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)