aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-23 18:07:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-23 18:07:27 +0000
commit0c907172495b3bd77e8ba1502044429aaf794bba (patch)
treef15289540bca43f6b6d76b9b9145a95a56065f49
parentterm: remove commented out code (diff)
grid: remove commented out code
-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;
}