summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fr-archive.c21
-rw-r--r--src/fr-archive.h2
-rw-r--r--src/fr-window.c19
-rw-r--r--src/fr-window.h2
4 files changed, 0 insertions, 44 deletions
diff --git a/src/fr-archive.c b/src/fr-archive.c
index c2d1db3..ad7b84b 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1344,27 +1344,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 5cd8dc4..91521a1 100644
--- a/src/fr-archive.h
+++ b/src/fr-archive.h
@@ -117,8 +117,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 93ddd8d..03ecc2a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -6297,25 +6297,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 fcb4f48..1b66d39 100644
--- a/src/fr-window.h
+++ b/src/fr-window.h
@@ -118,8 +118,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);