[gnome-commander/gcmd-1-10: 4/8] Remove remaining unused gnome-config calls



commit 7076e72d9cbcc8812531fcbd0d4013baaa4fc3ac
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Apr 13 11:52:31 2019 +0200

    Remove remaining unused gnome-config calls

 src/gnome-cmd-data.cc | 35 -----------------------------------
 src/gnome-cmd-data.h  |  1 -
 2 files changed, 36 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index cac62842..54e6efe3 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1539,41 +1539,6 @@ void GnomeCmdData::AdvrenameConfig::Profile::reset()
 }
 
 
-inline gint GnomeCmdData::get_int (const gchar *path, int def)
-{
-    gboolean b = FALSE;
-    gint value = gnome_config_get_int_with_default (path, &b);
-
-    return b ? def : value;
-}
-
-
-inline gchar* GnomeCmdData::get_string (const gchar *path, const gchar *def)
-{
-    gboolean b = FALSE;
-    gchar *value = gnome_config_get_string_with_default (path, &b);
-    if (b)
-        return g_strdup (def);
-    return value;
-}
-
-
-inline void GnomeCmdData::set_string (const gchar *path, const gchar *value)
-{
-    gnome_config_set_string (path, value);
-}
-
-
-inline gboolean GnomeCmdData::get_bool (const gchar *path, gboolean def)
-{
-    gboolean b = FALSE;
-    gboolean value = gnome_config_get_bool_with_default (path, &b);
-    if (b)
-        return def;
-    return value;
-}
-
-
 void GnomeCmdData::save_bookmarks()
 {
     gboolean hasBookmarks = false;
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index fc7fd906..9e085c90 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -720,7 +720,6 @@ struct GnomeCmdData
     gchar* gnome_cmd_data_get_string (const gchar *path, const gchar *def);
     gboolean gnome_cmd_data_parse_color (const gchar *spec, GdkColor *color);
     gboolean set_color_if_valid_key_value(GdkColor *color, GSettings *settings, const char *key);
-    void gnome_cmd_data_get_color_gnome_config (const gchar *path, GdkColor *color);
     gboolean set_gsettings_when_changed (GSettings *settings, const char *key, gpointer value);
     gboolean set_gsettings_color_when_changed (GSettings *settings, const char *key, GdkColor *color);
     gboolean set_gsettings_enum_when_changed (GSettings *settings, const char *key, gint value);


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