[gnome-chess] Remove ChessGame.started() and game_start_cb()



commit 61946ab583a9da3482f68601e4d0b10b52d6bc16
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jan 7 18:59:57 2014 -0600

    Remove ChessGame.started() and game_start_cb()

 src/chess-game.vala  |    2 --
 src/gnome-chess.vala |    9 ++-------
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/chess-game.vala b/src/chess-game.vala
index ee72992..2b8d54f 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -1276,7 +1276,6 @@ public class ChessGame
 
     public const string STANDARD_SETUP = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
 
-    public signal void started ();
     public signal void turn_started (ChessPlayer player);
     public signal void moved (ChessMove move);
     public signal void paused ();
@@ -1476,7 +1475,6 @@ public class ChessGame
             _clock.active_color = current_player.color;
         }
 
-        started ();
         current_player.start_turn ();
         turn_started (current_player);
     }
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 009ddb0..15a8b91 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -444,7 +444,6 @@ public class Application : Gtk.Application
             }
         }
 
-        game.started.connect (game_start_cb);
         game.turn_started.connect (game_turn_cb);
         game.moved.connect (game_move_cb);
         game.undo.connect (game_undo_cb);
@@ -534,6 +533,8 @@ public class Application : Gtk.Application
         }
 
         game.start ();
+        if (opponent_engine != null)
+            opponent_engine.start_game ();
 
         if (moves.length > 0 && game.clock != null)
         {
@@ -690,12 +691,6 @@ public class Application : Gtk.Application
          */
     }
 
-    private void game_start_cb (ChessGame game)
-    {
-        if (opponent_engine != null)
-            opponent_engine.start_game ();
-    }
-
     private void game_clock_tick_cb (ChessClock clock)
     {
         white_time_label.queue_draw ();


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