[retro-gtk] retro-core: Don't allow to set non-writable properties



commit 44b59fce51d73e6f819d59a32469048ac6c88fa7
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jan 6 20:15:54 2020 +0500

    retro-core: Don't allow to set non-writable properties
    
    Some properties in retro_core_set_property() switch statement are not
    writable, remove those branches.

 retro-gtk/retro-core.c | 16 ----------------
 1 file changed, 16 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index 7486278..225ec5c 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -59,10 +59,6 @@ static gint retro_core_i = 0;
 
 static void retro_core_set_filename (RetroCore   *self,
                                      const gchar *filename);
-static void retro_core_set_is_initiated (RetroCore *self,
-                                         gboolean   is_initiated);
-static void retro_core_set_game_loaded (RetroCore *self,
-                                        gboolean   game_loaded);
 
 /* Private */
 
@@ -231,18 +227,6 @@ retro_core_set_property (GObject      *object,
   case PROP_SAVE_DIRECTORY:
     retro_core_set_save_directory (self, g_value_get_string (value));
 
-    break;
-  case PROP_IS_INITIATED:
-    retro_core_set_is_initiated (self, g_value_get_boolean (value));
-
-    break;
-  case PROP_GAME_LOADED:
-    retro_core_set_game_loaded (self, g_value_get_boolean (value));
-
-    break;
-  case PROP_SUPPORT_NO_GAME:
-    retro_core_set_support_no_game (self, g_value_get_boolean (value));
-
     break;
   case PROP_RUNAHEAD:
     retro_core_set_runahead (self, g_value_get_uint (value));


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