aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
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)