[gnome-commander] GnomeCmdData: drop unused code
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdData: drop unused code
- Date: Tue, 6 Sep 2011 16:56:26 +0000 (UTC)
commit 842d31f29edd436a540a5cee6e24d3d9b427a216
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Sep 6 18:54:19 2011 +0200
GnomeCmdData: drop unused code
doc/C/gnome-commander.xml | 8 --------
src/gnome-cmd-data.cc | 34 ----------------------------------
2 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 5ebff3d..0813a6f 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6994,14 +6994,6 @@
<variablelist>
<varlistentry>
<term>
- <guilabel>~/.gnome-commander/connections</guilabel>
- </term>
- <listitem>
- <para/>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>
<guilabel>~/.gnome-commander/devices</guilabel>
</term>
<listitem>
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 6b884db..7187427 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -136,39 +136,6 @@ inline void write(XML::xstream &xml, GnomeCmdCon *con, const gchar *name)
}
-inline void save_connections (const gchar *fname)
-{
- gchar *path = config_dir ? g_build_filename (config_dir, fname, NULL) : g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
- FILE *fd = fopen (path, "w");
-
- if (fd)
- {
- chmod (path, S_IRUSR|S_IWUSR);
-
- for (GList *tmp = gnome_cmd_con_list_get_all_ftp (gnome_cmd_data.priv->con_list); tmp; tmp = tmp->next)
- {
- GnomeCmdConFtp *server = GNOME_CMD_CON_FTP (tmp->data);
- GnomeCmdCon *con = GNOME_CMD_CON (server);
-
- if (server)
- {
- string alias;
-
- 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:"");
- }
- }
-
- fclose (fd);
- }
- else
- g_warning ("Failed to open the file %s for writing", path);
-
- g_free (path);
-}
-
-
inline void save_devices (const gchar *fname)
{
gchar *path = config_dir ? g_build_filename (config_dir, fname, NULL) : g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
@@ -1654,7 +1621,6 @@ void GnomeCmdData::save()
save_cmdline_history();
//write_dir_history ();
- save_connections ("connections");
save_devices ("devices");
save_fav_apps ("fav-apps");
save_intviewer_defaults();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]