From: Tim Kientzle Date: Sun, 21 Feb 2010 08:27:43 +0000 (-0500) Subject: Remove calls to set_compression_none(), since it does nothing. X-Git-Tag: v3.0.0a~1226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634b5cd4bbdde030e812a03c6c7a079720ed784f;p=thirdparty%2Flibarchive.git Remove calls to set_compression_none(), since it does nothing. (These weren't actually needed before.) SVN-Revision: 1937 --- diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c index b62b0d722..e05f7cdff 100644 --- a/libarchive/archive_write.c +++ b/libarchive/archive_write.c @@ -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; diff --git a/tar/write.c b/tar/write.c index 1e8e6baaa..6774ca2a5 100644 --- a/tar/write.c +++ b/tar/write.c @@ -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.