[gnome-commander/gcmd-1-3] XML config: removed unused GnomeCmdUserActions::write() method



commit c82487e211027ebba3fd59479dfe4a40b37c0150
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Sep 7 18:05:28 2009 +0200

    XML config: removed unused GnomeCmdUserActions::write() method

 src/gnome-cmd-user-actions.cc |   28 ----------------------------
 src/gnome-cmd-user-actions.h  |    1 -
 2 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index ced8506..8371906 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -375,8 +375,6 @@ void GnomeCmdUserActions::shutdown()
     unregister(GDK_F8);
     unregister(GDK_F9);
     unregister(GDK_F10);
-
-    write("key-bindings");
 }
 
 
@@ -425,32 +423,6 @@ void GnomeCmdUserActions::load(const gchar *section)
 }
 
 
-void GnomeCmdUserActions::write(const gchar *section)
-{
-    string section_path  = G_DIR_SEPARATOR_S PACKAGE G_DIR_SEPARATOR_S;
-           section_path += section;
-
-    gnome_config_clean_section (section_path.c_str());
-
-    for (ACTIONS_COLL::const_iterator i=action.begin(); i!=action.end(); ++i)
-    {
-        string path  = section_path;
-               path += G_DIR_SEPARATOR;
-               path += key2str(i->first);
-
-        string action_name = action_func[i->second.func];
-
-        if (!i->second.user_data.empty())
-        {
-            action_name += '|';
-            action_name += i->second.user_data;
-        }
-
-        gnome_config_set_string (path.c_str(), action_name.c_str());
-    }
-}
-
-
 gboolean GnomeCmdUserActions::register_action(guint state, guint keyval, const gchar *name, const char *user_data)
 {
     GnomeCmdUserActionFunc func = action_func[name];
diff --git a/src/gnome-cmd-user-actions.h b/src/gnome-cmd-user-actions.h
index 6c3efe9..e8cc69c 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -164,7 +164,6 @@ class GnomeCmdUserActions
     void shutdown();
 
     void load(const gchar *section);
-    void write(const gchar *section);
 
     void clear()                                                            {   action.clear();               }
 



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