[gnome-nibbles] Finished removing bunus_final unused function



commit 24a54717b055d2cd175252d411a633c09692668d
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sat Jul 27 14:04:15 2013 -0400

    Finished removing bunus_final unused function

 src/boni.c     |   27 ---------------------------
 src/gnibbles.c |   14 --------------
 2 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/src/boni.c b/src/boni.c
index 671a7f7..a513ee8 100644
--- a/src/boni.c
+++ b/src/boni.c
@@ -156,33 +156,6 @@ gnibbles_boni_remove_bonus (GnibblesBoni * boni, gint x, gint y)
   }
 }
 
-
-void
-gnibbles_boni_remove_bonus_final (GnibblesBoni * boni, gint x, gint y)
-{
-  int i;
-
-  for (i = 0; i < boni->numbonuses; i++) {
-    if ((x == boni->bonuses[i]->x &&
-        y == boni->bonuses[i]->y) ||
-        (x == boni->bonuses[i]->x + 1 &&
-        y == boni->bonuses[i]->y) ||
-        (x == boni->bonuses[i]->x &&
-        y == boni->bonuses[i]->y + 1) ||
-        (x == boni->bonuses[i]->x + 1 && y == boni->bonuses[i]->y + 1)) {
-
-      board->walls[boni->bonuses[i]->x][boni->bonuses[i]->y] = EMPTYCHAR;
-      board->walls[boni->bonuses[i]->x + 1][boni->bonuses[i]->y] = EMPTYCHAR;
-      board->walls[boni->bonuses[i]->x][boni->bonuses[i]->y + 1] = EMPTYCHAR;
-      board->walls[boni->bonuses[i]->x + 1][boni->bonuses[i]->y + 1] = EMPTYCHAR;
-
-      gnibbles_bonus_erase (boni->bonuses[i]);
-      boni->bonuses[i] = boni->bonuses[--boni->numbonuses];
-      return;
-    }
-  }
-}
-
 void
 gnibbles_boni_rescale (GnibblesBoni *boni, gint tilesize)
 {
diff --git a/src/gnibbles.c b/src/gnibbles.c
index 7ec318a..d2b7028 100644
--- a/src/gnibbles.c
+++ b/src/gnibbles.c
@@ -383,17 +383,3 @@ 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)
-{
-  gnibbles_boni_add_bonus_final (boni, t_x, t_y, t_type, t_fake, t_countdown);
-}
-
-void
-gnibbles_remove_spec_bonus (gint x, gint y)
-{
-  gnibbles_boni_remove_bonus_final (boni, x, y);
-}*/


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