[gnome-chess] Remove ChessGame parameter from game_end_cb()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Remove ChessGame parameter from game_end_cb()
- Date: Tue, 17 Feb 2015 23:38:12 +0000 (UTC)
commit 54c161fd96e30bdc74476997e68e4ac2f677f0ba
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Feb 17 16:42:17 2015 -0600
Remove ChessGame parameter from game_end_cb()
It just shadows the field of the same name that is guaranteed to be the
same object.
src/gnome-chess.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index fc08d69..3229de2 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -550,7 +550,7 @@ public class ChessApplication : Gtk.Application
disable_window_action (SAVE_GAME_ACTION_NAME);
game.result = ChessResult.BUG;
game.rule = ChessRule.BUG;
- game_end_cb (game);
+ game_end_cb ();
return;
}
}
@@ -1206,7 +1206,7 @@ public class ChessApplication : Gtk.Application
}
}
- private void game_end_cb (ChessGame game)
+ private void game_end_cb ()
{
disable_window_action (RESIGN_ACTION_NAME);
disable_window_action (UNDO_MOVE_ACTION_NAME);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]