[gnome-nibbles] Removed some unused code according to gcc



commit fff2e2eea82e49f4baf3ebcdd1a394b63442d01a
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sat Jul 27 00:13:52 2013 -0400

    Removed some unused code according to gcc

 src/boni.c     |    5 ++++-
 src/boni.h     |    3 ---
 src/gnibbles.c |    4 ++--
 src/worm.c     |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/boni.c b/src/boni.c
index 4d2b9f0..671a7f7 100644
--- a/src/boni.c
+++ b/src/boni.c
@@ -88,6 +88,7 @@ gnibbles_boni_add_bonus (GnibblesBoni * boni, gint t_x, gint t_y,
     play_sound ("appear");
 }
 
+/*
 void
 gnibbles_boni_add_bonus_final (GnibblesBoni * boni, gint t_x, gint t_y,
                                gint t_type, gint t_fake, gint t_countdown)
@@ -106,7 +107,7 @@ gnibbles_boni_add_bonus_final (GnibblesBoni * boni, gint t_x, gint t_y,
   boni->numbonuses++;
   if (t_type != BONUSREGULAR)
     play_sound ("appear");
-}
+}*/
 
 int
 gnibbles_boni_fake (GnibblesBoni * boni, gint x, gint y)
@@ -128,6 +129,7 @@ gnibbles_boni_fake (GnibblesBoni * boni, gint x, gint y)
   return 0;
 }
 
+
 void
 gnibbles_boni_remove_bonus (GnibblesBoni * boni, gint x, gint y)
 {
@@ -154,6 +156,7 @@ gnibbles_boni_remove_bonus (GnibblesBoni * boni, gint x, gint y)
   }
 }
 
+
 void
 gnibbles_boni_remove_bonus_final (GnibblesBoni * boni, gint x, gint y)
 {
diff --git a/src/boni.h b/src/boni.h
index 63914f9..d3df86b 100644
--- a/src/boni.h
+++ b/src/boni.h
@@ -43,9 +43,6 @@ void gnibbles_boni_destroy (GnibblesBoni * boni);
 void gnibbles_boni_add_bonus (GnibblesBoni * boni, gint t_x, gint t_y,
                               gint t_type, gint t_fake, gint t_countdown);
 void gnibbles_boni_remove_bonus (GnibblesBoni * boni, gint x, gint y);
-void gnibbles_boni_add_bonus_final (GnibblesBoni * boni, gint t_x, gint t_y,
-                                    gint t_type, gint t_fake, gint t_countdown);
-void gnibbles_boni_remove_bonus_final (GnibblesBoni * boni, gint x, gint y);
 
 int gnibbles_boni_fake (GnibblesBoni * boni, gint x, gint y);
 
diff --git a/src/gnibbles.c b/src/gnibbles.c
index eaa1409..7ec318a 100644
--- a/src/gnibbles.c
+++ b/src/gnibbles.c
@@ -384,7 +384,7 @@ gnibbles_log_score (GtkWidget * window)
   gnibbles_show_scores (window, pos);
 }
 
-
+/*
 void
 gnibbles_add_spec_bonus (gint t_x, gint t_y,
                          gint t_type, gint t_fake, gint t_countdown)
@@ -396,4 +396,4 @@ void
 gnibbles_remove_spec_bonus (gint x, gint y)
 {
   gnibbles_boni_remove_bonus_final (boni, x, y);
-}
+}*/
diff --git a/src/worm.c b/src/worm.c
index 193c622..c771339 100644
--- a/src/worm.c
+++ b/src/worm.c
@@ -355,13 +355,13 @@ gnibbles_worm_handle_bonus (GnibblesWorm *worm)
     if ((board->walls[worm->xhead][worm->yhead] == BONUSREGULAR + 'A') &&
         !gnibbles_boni_fake (boni, worm->xhead, worm->yhead)) {
 
-      gnibbles_boni_remove_bonus_final (boni, worm->xhead, worm->yhead);
+      gnibbles_boni_remove_bonus (boni, worm->xhead, worm->yhead);
 
       if (boni->numleft != 0)
         gnibbles_board_level_add_bonus (board, 1);
 
     } else
-        gnibbles_boni_remove_bonus_final (boni, worm->xhead, worm->yhead);
+        gnibbles_boni_remove_bonus (boni, worm->xhead, worm->yhead);
   }
 
   if (board->walls[worm->xhead][worm->yhead] == WARPLETTER) {


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