diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-23 18:07:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-23 18:07:27 +0000 |
| commit | 0c907172495b3bd77e8ba1502044429aaf794bba (patch) | |
| tree | f15289540bca43f6b6d76b9b9145a95a56065f49 | |
| parent | term: remove commented out code (diff) | |
grid: remove commented out code
| -rw-r--r-- | grid.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |
