[gnome-commander] Removed unused code



commit 37d8a96459aabf8bc3b21c57b8aa58b0c2f279d0
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Apr 21 21:19:25 2011 +0200

    Removed unused code

 src/gnome-cmd-con.cc |   23 -----------------------
 src/gnome-cmd-con.h  |    3 ---
 2 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 99dff78..cdb3fc1 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -31,7 +31,6 @@ using namespace std;
 
 struct GnomeCmdConPrivate
 {
-    GnomeCmdDir    *root_dir;      // the root dir of this connection
     GnomeCmdDir    *default_dir;   // the start dir of this connection
     History        *dir_history;
     GnomeCmdBookmarkGroup *bookmarks;
@@ -97,8 +96,6 @@ static void destroy (GtkObject *object)
 
     if (con->priv->default_dir)
         gnome_cmd_dir_unref (con->priv->default_dir);
-    if (con->priv->root_dir)
-        gnome_cmd_dir_unref (con->priv->root_dir);
 
     delete con->priv->dir_history;
 
@@ -359,26 +356,6 @@ GnomeCmdDir *gnome_cmd_con_get_default_dir (GnomeCmdCon *con)
 }
 
 
-GnomeCmdDir *gnome_cmd_con_get_root_dir (GnomeCmdCon *con)
-{
-    g_return_val_if_fail (GNOME_CMD_IS_CON (con), NULL);
-
-    return con->priv->root_dir;
-}
-
-
-void gnome_cmd_con_set_root_dir (GnomeCmdCon *con, GnomeCmdDir *dir)
-{
-    g_return_if_fail (GNOME_CMD_IS_CON (con));
-
-    if (dir)
-        gnome_cmd_dir_ref (dir);
-    if (con->priv->root_dir)
-        gnome_cmd_dir_unref (con->priv->root_dir);
-    con->priv->root_dir = dir;
-}
-
-
 History *gnome_cmd_con_get_dir_history (GnomeCmdCon *con)
 {
     g_return_val_if_fail (GNOME_CMD_IS_CON (con), NULL);
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index fdfc909..4957edb 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -209,9 +209,6 @@ inline void gnome_cmd_con_set_host_name (GnomeCmdCon *con, const std::string &ho
 GnomeCmdDir *gnome_cmd_con_get_default_dir (GnomeCmdCon *con);
 void gnome_cmd_con_set_default_dir (GnomeCmdCon *con, GnomeCmdDir *dir);
 
-GnomeCmdDir *gnome_cmd_con_get_root_dir (GnomeCmdCon *con);
-void gnome_cmd_con_set_root_dir (GnomeCmdCon *con, GnomeCmdDir *dir);
-
 inline gboolean gnome_cmd_con_should_remember_dir (GnomeCmdCon *con)
 {
     g_return_val_if_fail (GNOME_CMD_IS_CON (con), FALSE);



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