[file-roller] removed unused functions



commit 73fd3c56d567550be85574315d7a2beaec192970
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Jun 18 11:13:27 2012 +0200

    removed unused functions

 src/fr-archive.c |   21 ---------------------
 src/fr-archive.h |    2 --
 src/fr-window.c  |   19 -------------------
 src/fr-window.h  |    2 --
 4 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 1f9145c..d7cb0f3 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1343,27 +1343,6 @@ fr_archive_reload (FrArchive  *archive,
 }
 
 
-void
-fr_archive_rename (FrArchive  *archive,
-		   const char *filename)
-{
-	g_return_if_fail (archive != NULL);
-
-	if (archive->is_compressed_file) {
-		/* If the archive is a compressed file we have to reload it,
-		 * because in this case the 'content' of the archive changes
-		 * too. */
-		fr_archive_load (archive, filename, NULL);
-	}
-	else {
-		if (archive->file != NULL)
-			g_object_unref (archive->file);
-		archive->file = g_file_new_for_path (filename);
-		fr_command_set_filename (archive->command, filename);
-	}
-}
-
-
 /* -- add -- */
 
 
diff --git a/src/fr-archive.h b/src/fr-archive.h
index 2079254..a934277 100644
--- a/src/fr-archive.h
+++ b/src/fr-archive.h
@@ -116,8 +116,6 @@ gboolean    fr_archive_load_local                (FrArchive       *archive,
 		       				  const char      *password);
 void        fr_archive_reload                    (FrArchive       *archive,
 						  const char      *password);
-void        fr_archive_rename                    (FrArchive       *archive,
-						  const char      *new_uri);
 
 /**/
 
diff --git a/src/fr-window.c b/src/fr-window.c
index 23ca246..dfaef47 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -6343,25 +6343,6 @@ fr_window_archive_reload (FrWindow *window)
 }
 
 
-void
-fr_window_archive_rename (FrWindow   *window,
-			  const char *uri)
-{
-	g_return_if_fail (window != NULL);
-
-	if (window->priv->archive_new) {
-		fr_window_archive_new (window, uri);
-		return;
-	}
-
-	fr_archive_rename (window->archive, uri);
-	fr_window_set_archive_uri (window, uri);
-
-	fr_window_update_title (window);
-	fr_window_add_to_recent_list (window, window->priv->archive_uri);
-}
-
-
 /**/
 
 
diff --git a/src/fr-window.h b/src/fr-window.h
index 884b1d9..b27e651 100644
--- a/src/fr-window.h
+++ b/src/fr-window.h
@@ -122,8 +122,6 @@ void        fr_window_archive_save_as           (FrWindow      *window,
 						 gboolean       encrypt_header,
 						 guint          volume_size);
 void        fr_window_archive_reload            (FrWindow      *window);
-void        fr_window_archive_rename            (FrWindow      *window,
-						 const char    *filename);
 void        fr_window_archive_add_files         (FrWindow      *window,
 						 GList         *file_list, /* GFile list */
 						 gboolean       update);



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