[gnome-commander/GSettings] Removes unused and deprecated gnome_config functions from internal viewer



commit 03717b75c6fbd88947c25de380e3feef8d1122fb
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Fri Aug 5 20:51:12 2016 +0200

    Removes unused and deprecated gnome_config functions from internal viewer

 src/intviewer/viewer-utils.cc  |   33 ---------------------------------
 src/intviewer/viewer-utils.h   |    4 ----
 src/intviewer/viewer-window.cc |    1 -
 3 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/src/intviewer/viewer-utils.cc b/src/intviewer/viewer-utils.cc
index e74a408..2e458d7 100644
--- a/src/intviewer/viewer-utils.cc
+++ b/src/intviewer/viewer-utils.cc
@@ -22,46 +22,13 @@
  *
  */
 
-#include <config.h>
 #include <glib.h>
-#include <libgnome/gnome-config.h>
 
 #include "gvtypes.h"
 #include "viewer-utils.h"
 
 using namespace std;
 
-
-gchar *gviewer_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;
-}
-
-
-gint gviewer_get_int (const gchar *path, int def)
-{
-    gboolean b = FALSE;
-    gint value = gnome_config_get_int_with_default (path, &b);
-    if (b)
-        return def;
-    return value;
-}
-
-
-gboolean gviewer_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;
-}
-
-
 int unicode2utf8 (unsigned int unicode, unsigned char *out)
 {
     int bytes_needed = 0;
diff --git a/src/intviewer/viewer-utils.h b/src/intviewer/viewer-utils.h
index e246d9e..08449cc 100644
--- a/src/intviewer/viewer-utils.h
+++ b/src/intviewer/viewer-utils.h
@@ -27,10 +27,6 @@
 
 #define GVIEWER_DEFAULT_PATH_PREFIX "/gnome-commander/internal_viewer/"
 
-gchar   *gviewer_get_string (const gchar *path, const gchar *def);
-gint     gviewer_get_int (const gchar *path, int def);
-gboolean gviewer_get_bool (const gchar *path, gboolean def);
-
 int unicode2utf8(unsigned int unicode, unsigned char *out);
 char_type *convert_utf8_to_chartype_array(const gchar *utf8text, /*out*/ int &array_length);
 
diff --git a/src/intviewer/viewer-window.cc b/src/intviewer/viewer-window.cc
index f8de84e..e6a87cd 100644
--- a/src/intviewer/viewer-window.cc
+++ b/src/intviewer/viewer-window.cc
@@ -22,7 +22,6 @@
  *
  */
 
-#include <config.h>
 #include <errno.h>
 #include <unistd.h>
 #include <string.h>


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