diff options
author | infirit <[email protected]> | 2014-11-21 15:29:29 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-22 20:25:29 +0100 |
commit | bfd0f05763c3baa877f696ee5b20f7d5e2f740c2 (patch) | |
tree | 2eb750fbc7e7984a7d2e8434cee25a7116f7c188 /src | |
parent | 1e65b2e33d57c1d78049766919d068464898c5fd (diff) | |
download | engrampa-bfd0f05763c3baa877f696ee5b20f7d5e2f740c2.tar.bz2 engrampa-bfd0f05763c3baa877f696ee5b20f7d5e2f740c2.tar.xz |
removed unused functions
Based on FR commit: 73fd3c56d567550be85574315d7a2beaec192970
From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/fr-archive.c | 21 | ||||
-rw-r--r-- | src/fr-archive.h | 2 | ||||
-rw-r--r-- | src/fr-window.c | 19 | ||||
-rw-r--r-- | 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 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); |