[four-in-a-row] Remove a method.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Remove a method.
- Date: Sat, 21 Dec 2019 16:36:51 +0000 (UTC)
commit 8c0c9db6e584ccd34b50b8ebd47d25f2ed21b3a6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 21 10:34:15 2019 +0100
Remove a method.
src/four-in-a-row.vala | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index a1bb16f..042685f 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -156,7 +156,7 @@ private class FourInARow : Gtk.Application
if (!is_player_human ())
{
vstr [0] = vlevel [ai_level];
- game_process_move (playgame ((string) vstr) - 1);
+ process_move (playgame ((string) vstr) - 1);
}
}
@@ -270,7 +270,7 @@ private class FourInARow : Gtk.Application
if (gameover && timeout == 0)
blink_winner (2);
else if (is_player_human () && timeout == 0)
- game_process_move (column);
+ process_move (column);
return true;
}
@@ -408,11 +408,6 @@ private class FourInARow : Gtk.Application
prompt_player ();
}
- private void game_process_move (int c)
- {
- process_move (c);
- }
-
private void process_move3 (int c)
{
play_sound (SoundID.DROP);
@@ -888,7 +883,7 @@ private class FourInARow : Gtk.Application
move_cursor (column_moveto);
}
else if (e.keyval == Prefs.instance.keypress_drop)
- game_process_move (column);
+ process_move (column);
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]