Skip to content

Commit

Permalink
Remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
goodartistscopy committed Feb 11, 2024
1 parent 1e4d784 commit 2f46697
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions example_06_gol/src/game_of_life.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ fn step(@builtin(global_invocation_id) cell_id: vec3u,
}
}
}
let num_dead = 8 - num_alive;

if alive {
if (num_alive < 2) || (num_alive > 3) {
Expand Down Expand Up @@ -120,7 +119,6 @@ fn step_local_mem(@builtin(global_invocation_id) cell_id: vec3u,
}
}
}
let num_dead = 8 - num_alive;

if alive {
if (num_alive < 2) || (num_alive > 3) {
Expand Down

0 comments on commit 2f46697

Please sign in to comment.