[gnome-panel] libpanel-util: remove panel_key_file_copy_and_mark_trusted



commit 6ea584c417a6f89da268ecf8354c9f329de4e909
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 8 01:57:48 2020 +0200

    libpanel-util: remove panel_key_file_copy_and_mark_trusted

 gnome-panel/libpanel-util/panel-keyfile.c | 24 ------------------------
 gnome-panel/libpanel-util/panel-keyfile.h |  4 ----
 2 files changed, 28 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-keyfile.c b/gnome-panel/libpanel-util/panel-keyfile.c
index 52d4e2efd..b43792491 100644
--- a/gnome-panel/libpanel-util/panel-keyfile.c
+++ b/gnome-panel/libpanel-util/panel-keyfile.c
@@ -203,30 +203,6 @@ panel_key_file_load_from_uri (GKeyFile       *keyfile,
        return result;
 }
 
-gboolean
-panel_key_file_copy_and_mark_trusted (const char  *source_path,
-                                     const char  *target_path,
-                                     GError     **error)
-{
-       GKeyFile *key_file;
-       gboolean  res = FALSE;
-
-       key_file = g_key_file_new ();
-       res = g_key_file_load_from_file (key_file, source_path, 
-                                        G_KEY_FILE_KEEP_COMMENTS|G_KEY_FILE_KEEP_TRANSLATIONS,
-                                        error);
-       if (!res) {
-               g_key_file_free (key_file);
-               return FALSE;
-       }
-
-       res = panel_key_file_to_file (key_file, target_path, error);
-
-       g_key_file_free (key_file);
-
-       return res;
-}
-
 gboolean
 panel_key_file_get_boolean (GKeyFile    *keyfile,
                            const gchar *key,
diff --git a/gnome-panel/libpanel-util/panel-keyfile.h b/gnome-panel/libpanel-util/panel-keyfile.h
index 381bb9791..7c5060f73 100644
--- a/gnome-panel/libpanel-util/panel-keyfile.h
+++ b/gnome-panel/libpanel-util/panel-keyfile.h
@@ -39,10 +39,6 @@ gboolean panel_key_file_load_from_uri (GKeyFile       *keyfile,
                                       GKeyFileFlags   flags,
                                       GError        **error);
 
-gboolean panel_key_file_copy_and_mark_trusted (const char  *source_path,
-                                              const char  *target_path,
-                                              GError     **error);
-
 gboolean panel_key_file_get_boolean   (GKeyFile       *keyfile,
                                       const gchar    *key,
                                       gboolean        default_value);


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