[swell-foop/arnaudb/history: 3/7] Clean a bit API.



commit 4683bbd6ad95f45e8b1ce0ad5911ec2b8d8c03dc
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 18 13:05:54 2020 +0200

    Clean a bit API.

 src/game.vala | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 24272b3..4fd45fb 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -210,12 +210,12 @@ private class Game : Object
         return tiles[y, x];
     }
 
-    internal bool remove_connected_tiles (Tile given_tile)
+    internal void remove_connected_tiles (Tile given_tile)
     {
         List<Tile> cl = connected_tiles (given_tile);
 
         if (cl.length () < 2)
-            return false;
+            return;
 
         foreach (unowned Tile tile in (!) cl)
             tile.closed = true;
@@ -288,8 +288,6 @@ private class Game : Object
                 increment_score (1000);
             complete ();
         }
-
-        return false;
     }
 
     private bool has_completed ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]