[gnome-games] gnomine: remove unused variables



commit 901d28c38547ce10d07aa8ad73d05702bcfc984b
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Mon Aug 1 20:44:04 2011 +0200

    gnomine: remove unused variables

 gnomine/gnomine.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gnomine/gnomine.c b/gnomine/gnomine.c
index 36f44db..194356b 100644
--- a/gnomine/gnomine.c
+++ b/gnomine/gnomine.c
@@ -257,24 +257,17 @@ scores_callback (void)
 static void
 new_game (void)
 {
-  gint width, height, w_diff, h_diff;
-  guint size;
+  gint width, height;
   gint x, y;
   static gint size_table[3][3] = { {8, 8, 10}, {16, 16, 40}, {30, 16, 99} };
   GtkMineField *mf = GTK_MINEFIELD (mfield);
-  GtkAllocation allocation;
 
   games_clock_stop (GAMES_CLOCK (clk));
   games_clock_reset (GAMES_CLOCK (clk));
   show_face (pm_smile);
 
-
   /* get window size and mine square size (gtk_minefield_restart() may change it) */
   gtk_window_get_size (GTK_WINDOW (window), &width, &height);
-  size = mf->minesizepixels;
-  gtk_widget_get_allocation (mfield, &allocation);
-  w_diff = width - allocation.width;
-  h_diff = height - allocation.height;
 
   if (fsize == 3) {
     x = xsize;



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