[gnome-nibbles/wip/vala] Remove unused restart_game signal
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/wip/vala] Remove unused restart_game signal
- Date: Sun, 20 Sep 2015 18:28:14 +0000 (UTC)
commit 3364dfdc91b0a019d686b1b4603cea0a8c0f1786
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 20 12:24:36 2015 -0500
Remove unused restart_game signal
src/gnome-nibbles.vala | 5 ++---
src/nibbles-game.vala | 1 -
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 65593a0..6b7cbfb 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -176,7 +176,6 @@ public class Nibbles : Gtk.Application
/* Create game */
game = new NibblesGame (settings);
game.log_score.connect (log_score_cb);
- game.restart_game.connect (restart_game_cb);
game.level_completed.connect (level_completed_cb);
game.notify["is_paused"].connect (() => {
if (game.is_paused)
@@ -346,7 +345,7 @@ public class Nibbles : Gtk.Application
});
}
- private void restart_game_cb ()
+ private void restart_game ()
{
view.new_level (game.current_level);
@@ -672,7 +671,7 @@ public class Nibbles : Gtk.Application
headerbar.set_title (_("Level %d").printf(game.current_level));
- restart_game_cb ();
+ restart_game ();
});
overlay.add_overlay (label);
diff --git a/src/nibbles-game.vala b/src/nibbles-game.vala
index a7968d1..2e63f99 100644
--- a/src/nibbles-game.vala
+++ b/src/nibbles-game.vala
@@ -79,7 +79,6 @@ public class NibblesGame : Object
public signal void bonus_applied (Worm worm);
public signal void log_score (int score);
public signal void animate_end_game ();
- public signal void restart_game ();
public signal void level_completed ();
public NibblesGame (Settings settings)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]