Finish 439a5cffca5bcdefc6d4d552af64aa2e10c5ab5d
authorChristian Hesse <mail@eworm.de>
Thu, 18 Jun 2015 12:50:29 +0000 (14:50 +0200)
committerRicardo Mones <ricardo@mones.org>
Sun, 21 Jun 2015 00:48:23 +0000 (02:48 +0200)
Remove unused code relating to old unsupported version of libarchive.

src/plugins/archive/libarchive_archive.c

index a0536d42d85a09aa580ae7f882f8db6fb1058894..8266c002caa90f36e2a2d73f7c5ae5153e3a67c6 100644 (file)
@@ -501,7 +501,6 @@ const gchar* archive_create(const char* archive_name, GSList* files,
 #endif
                                return archive_error_string(arch);
                        break;
 #endif
                                return archive_error_string(arch);
                        break;
-#if NEW_ARCHIVE_API
                case COMPRESS:
 #if ARCHIVE_VERSION_NUMBER < 3000000
                        if (archive_write_set_compression_compress(arch) != ARCHIVE_OK)
                case COMPRESS:
 #if ARCHIVE_VERSION_NUMBER < 3000000
                        if (archive_write_set_compression_compress(arch) != ARCHIVE_OK)
@@ -510,7 +509,6 @@ const gchar* archive_create(const char* archive_name, GSList* files,
 #endif
                                return archive_error_string(arch);
                        break;
 #endif
                                return archive_error_string(arch);
                        break;
-#endif
                case NO_COMPRESS:
 #if ARCHIVE_VERSION_NUMBER < 3000000
                        if (archive_write_set_compression_none(arch) != ARCHIVE_OK)
                case NO_COMPRESS:
 #if ARCHIVE_VERSION_NUMBER < 3000000
                        if (archive_write_set_compression_none(arch) != ARCHIVE_OK)