[gnome-panel] libpanel-util: remove panel_key_file_remove_locale_key
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libpanel-util: remove panel_key_file_remove_locale_key
- Date: Sun, 8 Mar 2020 00:09:55 +0000 (UTC)
commit 75f03f6c8e82b2d48ae4d7cc17d9253b95050c03
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 8 01:56:32 2020 +0200
libpanel-util: remove panel_key_file_remove_locale_key
gnome-panel/libpanel-util/panel-keyfile.c | 33 -------------------------------
gnome-panel/libpanel-util/panel-keyfile.h | 2 --
2 files changed, 35 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-keyfile.c b/gnome-panel/libpanel-util/panel-keyfile.c
index 4273f34df..52d4e2efd 100644
--- a/gnome-panel/libpanel-util/panel-keyfile.c
+++ b/gnome-panel/libpanel-util/panel-keyfile.c
@@ -272,39 +272,6 @@ panel_key_file_set_locale_string (GKeyFile *keyfile,
key, value);
}
-void
-panel_key_file_remove_locale_key (GKeyFile *keyfile,
- const gchar *key)
-{
- const char * const *langs_pointer;
- int i;
- char *locale_key;
-
- locale_key = NULL;
- langs_pointer = g_get_language_names ();
- for (i = 0; langs_pointer[i] != NULL; i++) {
- /* find first without encoding */
- if (strchr (langs_pointer[i], '.') == NULL) {
- locale_key = g_strdup_printf ("%s[%s]",
- key, langs_pointer[i]);
- if (g_key_file_has_key (keyfile, G_KEY_FILE_DESKTOP_GROUP,
- locale_key, NULL))
- break;
-
- g_free (locale_key);
- locale_key = NULL;
- }
- }
-
- if (locale_key) {
- g_key_file_remove_key (keyfile, G_KEY_FILE_DESKTOP_GROUP,
- locale_key, NULL);
- g_free (locale_key);
- } else
- g_key_file_remove_key (keyfile, G_KEY_FILE_DESKTOP_GROUP,
- key, NULL);
-}
-
void
panel_key_file_remove_all_locale_key (GKeyFile *keyfile,
const gchar *key)
diff --git a/gnome-panel/libpanel-util/panel-keyfile.h b/gnome-panel/libpanel-util/panel-keyfile.h
index 42d03949b..381bb9791 100644
--- a/gnome-panel/libpanel-util/panel-keyfile.h
+++ b/gnome-panel/libpanel-util/panel-keyfile.h
@@ -61,8 +61,6 @@ void panel_key_file_set_locale_string (GKeyFile *keyfile,
#define panel_key_file_remove_key(key_file, key) \
g_key_file_remove_key (key_file, G_KEY_FILE_DESKTOP_GROUP, key, NULL)
-void panel_key_file_remove_locale_key (GKeyFile *keyfile,
- const gchar *key);
void panel_key_file_remove_all_locale_key (GKeyFile *keyfile,
const gchar *key);
void panel_key_file_ensure_C_key (GKeyFile *keyfile,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]