[gnome-commander] bookmarks: removed unused GnomeCmdData::save_local_bookmarks() and GnomeCmdData::save_smb_bookmarks(
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] bookmarks: removed unused GnomeCmdData::save_local_bookmarks() and GnomeCmdData::save_smb_bookmarks(
- Date: Tue, 5 Jan 2010 22:02:12 +0000 (UTC)
commit 365c3f6c2b2f0c3157f7c7e86b0157a77202b2db
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 4 23:46:53 2010 +0100
bookmarks: removed unused GnomeCmdData::save_local_bookmarks() and GnomeCmdData::save_smb_bookmarks() methods
src/gnome-cmd-data.cc | 56 -------------------------------------------------
src/gnome-cmd-data.h | 2 -
2 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 29fbcbf..2c4ad90 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -161,20 +161,6 @@ inline void save_connections (const gchar *fname)
stringify (alias, gnome_vfs_escape_string (gnome_cmd_con_get_alias (con)));
fprintf (fd, "U:\t%s\t%s\n", alias.c_str(), con->uri?con->uri:"");
-
- GnomeCmdBookmarkGroup *bookmark_group = gnome_cmd_con_get_bookmarks (con);
-
- for (GList *bookmarks = bookmark_group->bookmarks; bookmarks; bookmarks = bookmarks->next)
- {
- GnomeCmdBookmark *bookmark = (GnomeCmdBookmark *) bookmarks->data;
- gchar *name = gnome_vfs_escape_string (bookmark->name);
- gchar *path = gnome_vfs_escape_string (bookmark->path);
-
- fprintf (fd, "B: %s %s\n", name, path);
-
- g_free (name);
- g_free (path);
- }
}
}
@@ -851,46 +837,6 @@ inline void GnomeCmdData::save_intviewer_defaults()
}
-inline void GnomeCmdData::save_local_bookmarks()
-{
- GnomeCmdCon *con = gnome_cmd_con_list_get_home (priv->con_list);
- GList *tmp, *bookmarks;
- GList *names = NULL;
- GList *paths = NULL;
-
- for (tmp = bookmarks = gnome_cmd_con_get_bookmarks (con)->bookmarks; tmp; tmp = tmp->next)
- {
- GnomeCmdBookmark *bookmark = (GnomeCmdBookmark *) tmp->data;
- names = g_list_append (names, bookmark->name);
- paths = g_list_append (paths, bookmark->path);
- }
-
- gnome_cmd_data_set_int ("/local_bookmarks/count", g_list_length (bookmarks));
- gnome_cmd_data_set_string_history ("/local_bookmarks/name%d", names);
- gnome_cmd_data_set_string_history ("/local_bookmarks/path%d", paths);
-}
-
-
-inline void GnomeCmdData::save_smb_bookmarks()
-{
- GnomeCmdCon *con = gnome_cmd_con_list_get_smb (priv->con_list);
- GList *tmp, *bookmarks;
- GList *names = NULL;
- GList *paths = NULL;
-
- for (tmp = bookmarks = gnome_cmd_con_get_bookmarks (con)->bookmarks; tmp; tmp = tmp->next)
- {
- GnomeCmdBookmark *bookmark = (GnomeCmdBookmark *) tmp->data;
- names = g_list_append (names, bookmark->name);
- paths = g_list_append (paths, bookmark->path);
- }
-
- gnome_cmd_data_set_int ("/smb_bookmarks/count", g_list_length (bookmarks));
- gnome_cmd_data_set_string_history ("/smb_bookmarks/name%d", names);
- gnome_cmd_data_set_string_history ("/smb_bookmarks/path%d", paths);
-}
-
-
inline void GnomeCmdData::save_auto_load_plugins()
{
gnome_cmd_data_set_int ("/plugins/count", g_list_length (priv->auto_load_plugins));
@@ -1828,8 +1774,6 @@ void GnomeCmdData::save()
g_free (xml_cfg_path);
}
- save_local_bookmarks();
- save_smb_bookmarks();
save_auto_load_plugins();
gnome_config_sync ();
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 5a92ba1..d08a911 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -175,9 +175,7 @@ struct GnomeCmdData
void load_smb_bookmarks();
void save_auto_load_plugins();
void save_cmdline_history();
- void save_local_bookmarks();
void save_intviewer_defaults();
- void save_smb_bookmarks();
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]