[gnome-commander/gcmd-1-10: 7/8] Remove unused get_string method
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-10: 7/8] Remove unused get_string method
- Date: Sat, 13 Apr 2019 10:45:20 +0000 (UTC)
commit ab1f71ad1039857a3a6641c794b43c402ec249a1
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Apr 13 12:25:40 2019 +0200
Remove unused get_string method
src/gnome-cmd-data.cc | 11 -----------
src/gnome-cmd-data.h | 2 --
2 files changed, 13 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 54e6efe3..ba70e9b3 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -3677,17 +3677,6 @@ void GnomeCmdData::save()
}
-gchar* GnomeCmdData::gnome_cmd_data_get_string (const gchar *path, const gchar *def)
-{
- gchar *s = g_build_path (G_DIR_SEPARATOR_S, PACKAGE, path, nullptr);
-
- gchar *v = get_string (s, def);
-
- g_free (s);
-
- return v;
-}
-
/**
* This function tests if the given colorstring enholds a valid color-describing string.
* See documentation of gdk_color_parse() for valid strings.
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 9e085c90..dca92e8f 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -649,7 +649,6 @@ struct GnomeCmdData
gboolean add_bookmark_to_gvariant_builder(GVariantBuilder *builder, std::string bookmarkName,
GnomeCmdCon *con);
void add_search_profile_to_gvariant_builder(GVariantBuilder *builder, SearchProfile searchProfile);
inline gint get_int (const gchar *path, int def);
- inline gchar* get_string (const gchar *path, const gchar *def);
inline void set_string (const gchar *path, const gchar *value);
inline gboolean get_bool (const gchar *path, gboolean def);
inline void set_color (const gchar *path, GdkColor *color);
@@ -717,7 +716,6 @@ struct GnomeCmdData
void save_bookmarks();
void load_bookmarks();
void save();
- 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);
gboolean set_gsettings_when_changed (GSettings *settings, const char *key, gpointer value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]