[gnome-robots] Remove useless function set_game_graphics()



commit c8c818718f021c48a0ee3e9cce0c6e97c67f2c55
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun May 18 20:59:16 2014 -0500

    Remove useless function set_game_graphics()

 src/gnobots.c    |    2 +-
 src/graphics.c   |   13 -------------
 src/graphics.h   |    1 -
 src/properties.c |    4 ++--
 4 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/src/gnobots.c b/src/gnobots.c
index 2db6961..c1de4b9 100644
--- a/src/gnobots.c
+++ b/src/gnobots.c
@@ -309,7 +309,7 @@ main (int argc, char *argv[])
   init_game ();
 
   if (cmdline_scenario) {
-    set_game_graphics (cmdline_scenario);
+    load_game_graphics ();
   }
 
   if (cmdline_config) {
diff --git a/src/graphics.c b/src/graphics.c
index bbf5504..667abeb 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -266,19 +266,6 @@ free_game_graphics (void)
   return TRUE;
 }
 
-/**
- * set_game_graphics
- * @ng: Game graphics number
- *
- * Description:
- * Sets the game graphics to use
- **/
-void
-set_game_graphics (gchar * name)
-{
-  load_game_graphics ();
-}
-
 void
 set_background_color (GdkRGBA color)
 {
diff --git a/src/graphics.h b/src/graphics.h
index 936c002..e50aae6 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -13,7 +13,6 @@ gboolean draw_cb (GtkWidget * w, cairo_t * cr, gpointer data);
 gboolean load_game_graphics (void);
 gboolean free_game_graphics (void);
 gint num_game_graphics (void);
-void set_game_graphics (gchar *);
 void set_background_color (GdkRGBA color);
 void set_background_color_from_name (gchar * name);
 
diff --git a/src/properties.c b/src/properties.c
index 81450e5..f4f3ae6 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -192,7 +192,7 @@ pmap_selection (GtkWidget * widget, gpointer data)
 
   conf_set_theme (properties.themename);
 
-  set_game_graphics (properties.themename);
+  load_game_graphics ();
   clear_game_area ();
 }
 
@@ -588,7 +588,7 @@ load_properties (void)
   properties.show_toolbar = g_settings_get_boolean (settings,
                                                     KEY_SHOW_TOOLBAR);
 
-  set_game_graphics (properties.themename);
+  load_game_graphics ();
   set_game_config (properties.selected_config);
   keyboard_set (properties.keys);
   return TRUE;


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