aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grid.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/grid.c b/grid.c
index e0cc9482..744dd175 100644
--- a/grid.c
+++ b/grid.c
@@ -18,12 +18,7 @@ grid_swap_row(struct grid *grid, int row_a, int row_b, bool initialize)
struct row *a = grid->rows[real_a];
struct row *b = grid->rows[real_b];
-#if 0
- if (a == NULL)
- a = grid_row_alloc(grid->num_cols, initialize);
- if (b == NULL)
- b = grid_row_alloc(grid->num_cols, initialize);
-#endif
+
grid->rows[real_a] = b;
grid->rows[real_b] = a;
}