]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove calls to set_compression_none(), since it does nothing.
authorTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 08:27:43 +0000 (03:27 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 08:27:43 +0000 (03:27 -0500)
(These weren't actually needed before.)

SVN-Revision: 1937

libarchive/archive_write.c
tar/write.c

index b62b0d722e670a842bfc962fb136c5f152b3d1c8..e05f7cdffa48ed300c6c241c6a70b5e871b6fdff 100644 (file)
@@ -534,9 +534,6 @@ archive_write_open(struct archive *_a, void *client_data,
            ARCHIVE_STATE_NEW, "archive_write_open");
        archive_clear_error(&a->archive);
 
-       if (a->filter_first == NULL)
-               archive_write_set_compression_none(_a);
-
        a->client_writer = writer;
        a->client_opener = opener;
        a->client_closer = closer;
index 1e8e6baaadab6ed3f7773d6ac673695bcec28e18..6774ca2a553e57f6366b2392117f0a29e059aa5e 100644 (file)
@@ -300,7 +300,6 @@ tar_mode_r(struct bsdtar *bsdtar)
 
        /* Re-open archive for writing */
        a = archive_write_new();
-       archive_write_set_compression_none(a);
        /*
         * Set the format to be used for writing.  To allow people to
         * extend empty files, we need to allow them to specify the format,
@@ -402,7 +401,6 @@ tar_mode_u(struct bsdtar *bsdtar)
 
        /* Re-open archive for writing. */
        a = archive_write_new();
-       archive_write_set_compression_none(a);
        /*
         * Set format to same one auto-detected above, except that
         * we don't write GNU tar format, so use ustar instead.