From 5ace686e22e1031c23340fa237873e56e7bbe433 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 22 Jul 2020 17:13:45 +0100 Subject: [PATCH] remove unnecessary ID increments --- src/lib.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fe2fd21..a7316bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,8 +96,6 @@ pub fn add_tiles( if !game.tiles.contains(&inverted) { game.add_tile(inverted); - - tile_index += 1; } } @@ -111,8 +109,6 @@ pub fn add_tiles( if !game.tiles.contains(&flipped) { game.add_tile(flipped); - - tile_index += 1; } } @@ -126,8 +122,6 @@ pub fn add_tiles( if !game.tiles.contains(&mirrored) { game.add_tile(mirrored); - - tile_index += 1; } } @@ -145,8 +139,6 @@ pub fn add_tiles( if !game.tiles.contains(&rotated) { game.add_tile(rotated); - - tile_index += 1; } } }