[retro-gtk] retro-gobject: Remove deprecated module lookup funcs
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Remove deprecated module lookup funcs
- Date: Sat, 10 Sep 2016 10:44:25 +0000 (UTC)
commit 3ddff83a12ac14bc2f5503bc319c948c8c221645
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Sep 9 11:53:39 2016 +0200
retro-gobject: Remove deprecated module lookup funcs
Remove get_plugins_dir() and search_module() as they have been
deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=771171
retro-gobject/retro.vala | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/retro-gobject/retro.vala b/retro-gobject/retro.vala
index 93643d7..a9faf7a 100644
--- a/retro-gobject/retro.vala
+++ b/retro-gobject/retro.vala
@@ -40,29 +40,5 @@ public SystemInfo? get_system_info (string module_name) {
return info;
}
-[Version (deprecated = true, deprecated_since = "0.8")]
-public static string get_plugins_dir () {
- return Config.PROJECT_PLUGINS_DIR;
-}
-
-[Version (deprecated = true, deprecated_since = "0.8", replacement =
"Retro.ModuleQuery.lookup_module_for_basename")]
-public string? search_module (string module_basename) {
- var envp = Environ.@get ();
- var retro_plugin_path = Environ.get_variable (envp, ENV_PLUGIN_PATH) ?? "";
-
- var paths = retro_plugin_path.split (":");
- paths += Retro.get_plugins_dir ();
-
- foreach (var path in paths)
- if (path != "") {
- var directory = File.new_for_path (path);
- var file = directory.get_child (module_basename);
- if (file.query_exists ())
- return file.get_path ();
- }
-
- return null;
-}
-
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]