[gnome-commander/get_rid_of_xml] Remove unused method



commit c87875d93952e195c6b14b0ac1c2727d5c7be43d
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Nov 24 23:31:04 2018 +0100

    Remove unused method

 src/gnome-cmd-data.cc | 18 ------------------
 src/gnome-cmd-data.h  |  1 -
 2 files changed, 19 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 947ac121..b8beb48d 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2511,24 +2511,6 @@ static gboolean load_fav_apps_old (const gchar *fname)
     return TRUE;
 }
 
-#if defined (__GNUC__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat-nonliteral"
-#endif
-inline void GnomeCmdData::gnome_cmd_data_set_string_history (const gchar *format, GList *strings)
-{
-    gchar key[128];
-
-    for (gint i=0; strings; strings=strings->next, ++i)
-    {
-        snprintf (key, sizeof (key), format, i);
-        gnome_cmd_data_set_string (key, (gchar *) strings->data);
-    }
-}
-#if defined (__GNUC__)
-#pragma GCC diagnostic pop
-#endif
-
 /**
  * This function converts a GList into a NULL terminated array of char pointers.
  * This array is stored into the given GSettings key.
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index de6a2bf3..123249b4 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -716,7 +716,6 @@ struct GnomeCmdData
     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);
-    inline void gnome_cmd_data_set_string_history (const gchar *format, GList *strings);
     gboolean is_valid_color_string(const char *colorstring);
     gboolean set_valid_color_string(GSettings *settings, const char* key);
 


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