[gnome-commander/GSettings] Removes unused gnome_config funktions for loading bookmarks
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings] Removes unused gnome_config funktions for loading bookmarks
- Date: Fri, 5 Aug 2016 19:48:04 +0000 (UTC)
commit 58adfa86e87ee4201a303cc0254a659ad6568ffd
Author: Uwe Scholz <uwescholz src gnome org>
Date: Fri Aug 5 21:35:21 2016 +0200
Removes unused gnome_config funktions for loading bookmarks
src/gnome-cmd-data.cc | 34 ----------------------------------
src/gnome-cmd-data.h | 2 --
2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index fced6ab..242b340 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2546,32 +2546,6 @@ inline void GnomeCmdData::load_rename_history()
}
-inline void GnomeCmdData::load_local_bookmarks()
-{
- gint size = gnome_cmd_data_get_int ("/local_bookmarks/count", 0);
- GList *names = load_string_history ("/local_bookmarks/name%d", size);
- GList *paths = load_string_history ("/local_bookmarks/path%d", size);
-
- GnomeCmdCon *con = priv->con_list->get_home();
-
- for (gint i=0; i<size; i++)
- gnome_cmd_con_add_bookmark (con, (gchar *) g_list_nth_data (names, i), (gchar *) g_list_nth_data
(paths, i));
-}
-
-#ifdef HAVE_SAMBA
-inline void GnomeCmdData::load_smb_bookmarks()
-{
- gint size = gnome_cmd_data_get_int ("/smb_bookmarks/count", 0);
- GList *names = load_string_history ("/smb_bookmarks/name%d", size);
- GList *paths = load_string_history ("/smb_bookmarks/path%d", size);
-
- GnomeCmdCon *con = priv->con_list->get_smb();
-
- for (gint i=0; i<size; i++)
- gnome_cmd_con_add_bookmark (con, (gchar *) g_list_nth_data (names, i), (gchar *) g_list_nth_data
(paths, i));
-}
-#endif
-
/**
* This function pushes the list of plugins to be automatically loaded into the
* associated Glist.
@@ -3884,14 +3858,6 @@ void GnomeCmdData::load_more()
{
if (load_fav_apps_old ("fav-apps") == FALSE)
load_fav_apps("fav-apps");
-
- if (!XML_cfg_has_bookmarks)
- {
- load_local_bookmarks();
-#ifdef HAVE_SAMBA
- load_smb_bookmarks();
-#endif
- }
}
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 599c785..8967eaa 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -567,11 +567,9 @@ struct GnomeCmdData
void load_auto_load_plugins();
void load_cmdline_history();
- void load_local_bookmarks();
void load_rename_history();
void load_search_defaults();
void load_intviewer_defaults();
- void load_smb_bookmarks();
gboolean save_auto_load_plugins();
void save_cmdline_history();
void save_intviewer_defaults();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]