[retro-gtk] Remove unused get_system_info()



commit f7880e004fce00122abcc20fa7a56c9eb3f0827b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Aug 3 01:28:32 2017 +0200

    Remove unused get_system_info()
    
    It is unused in the library and by the clients so it's better to remove
    it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777489

 retro-gtk/retro.vala |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/retro-gtk/retro.vala b/retro-gtk/retro.vala
index c16dccf..05dbe7b 100644
--- a/retro-gtk/retro.vala
+++ b/retro-gtk/retro.vala
@@ -19,27 +19,6 @@ private errordomain CbError {
        NO_CALLBACK
 }
 
-/**
- * Gets a module's system informations in a simple and light way.
- *
- * @param module_name the file name of the module to get the system
- * informations
- * @return the system infos of the module or //null//
- */
-public SystemInfo? get_system_info (string module_name) {
-       var module = GLib.Module.open (module_name, ModuleFlags.BIND_LAZY | ModuleFlags.BIND_LOCAL);
-
-       void *function;
-       module.symbol ("retro_get_system_info", out function);
-
-       if (function == null) return null;
-
-       unowned SystemInfo info;
-       ((GetSystemInfo) function) (out info);
-
-       return info;
-}
-
 public extern void g_log (Core core, string log_domain, LogLevelFlags log_level, string message);
 
 }


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