[libgda] gda-init: Removing unused gda_get_application_exec_path method
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] gda-init: Removing unused gda_get_application_exec_path method
- Date: Thu, 21 Feb 2019 16:23:57 +0000 (UTC)
commit c433a988b497ab07387d2659d320cf41f92c3258
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Mon Feb 18 09:48:47 2019 -0600
gda-init: Removing unused gda_get_application_exec_path method
libgda/gda-init.c | 29 -----------------------------
libgda/libgda.h.in | 2 +-
2 files changed, 1 insertion(+), 30 deletions(-)
---
diff --git a/libgda/gda-init.c b/libgda/gda-init.c
index 3083a5b07..8c7cf0807 100644
--- a/libgda/gda-init.c
+++ b/libgda/gda-init.c
@@ -279,32 +279,3 @@ gda_init (void)
g_mutex_unlock (&init_mutex);
}
-/**
- * gda_get_application_exec_path:
- * @app_name: the name of the application to find
- *
- * Find the path to the application identified by @app_name. For example if the application
- * is "gda-sql", then calling this function will return
- * "/your/prefix/bin/gda-sql-6.0" if Libgda is installed in
- * the "/your/prefix" prefix (which would usually be "/usr"), and for the ABI version 5.0.
- *
- * Returns: (transfer full): the path as a new string, or %NULL if the application cannot be found
- */
-gchar *
-gda_get_application_exec_path (const gchar *app_name)
-{
- gchar *str;
- gchar *fname;
- g_return_val_if_fail (app_name, NULL);
-
- gda_gbr_init ();
- fname = g_strdup_printf ("%s-%s", app_name, ABI_VERSION);
- str = gda_gbr_get_file_path (GDA_BIN_DIR, fname, NULL);
- g_free (fname);
- if (!g_file_test (str, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE)) {
- g_free (str);
- str = NULL;
- }
-
- return str;
-}
diff --git a/libgda/libgda.h.in b/libgda/libgda.h.in
index 3f4de858b..75d0e0171 100644
--- a/libgda/libgda.h.in
+++ b/libgda/libgda.h.in
@@ -101,7 +101,6 @@ G_BEGIN_DECLS
void gda_init (void);
void gda_locale_changed (void);
-gchar *gda_get_application_exec_path (const gchar *app_name);
G_END_DECLS
@@ -109,3 +108,4 @@ G_END_DECLS
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]