]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove liblzmadec remnants (#2436)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Sun, 15 Dec 2024 22:14:57 +0000 (23:14 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Dec 2024 22:14:57 +0000 (23:14 +0100)
It looks like support for this library was removed in 2016, but we still
had some unused cmake code and a dead preprocessor block.

build/cmake/config.h.in
contrib/android/config/windows_host.h
libarchive/archive_read_support_format_xar.c

index ccfcc5be929a15e8f99c8a726e7e4f3b9425a525..1e05dafcbc48a13db501289223ad955d93cca741 100644 (file)
@@ -735,9 +735,6 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the `lzma' library (-llzma). */
 #cmakedefine HAVE_LIBLZMA 1
 
-/* Define to 1 if you have the `lzmadec' library (-llzmadec). */
-#cmakedefine HAVE_LIBLZMADEC 1
-
 /* Define to 1 if you have the `lzo2' library (-llzo2). */
 #cmakedefine HAVE_LIBLZO2 1
 
@@ -850,9 +847,6 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the <lz4.h> header file. */
 #cmakedefine HAVE_LZ4_H 1
 
-/* Define to 1 if you have the <lzmadec.h> header file. */
-#cmakedefine HAVE_LZMADEC_H 1
-
 /* Define to 1 if you have the <lzma.h> header file. */
 #cmakedefine HAVE_LZMA_H 1
 
index da821cc04a6d1f264e3a3ebe4ab3fc5fb7f098b1..4754744d8457d70fbe74de39c247ff30097636f4 100644 (file)
 /* Define to 1 if you have the <lz4.h> header file. */
 /* #undef HAVE_LZ4_H */
 
-/* Define to 1 if you have the <lzmadec.h> header file. */
-/* #undef HAVE_LZMADEC_H */
-
 /* Define to 1 if you have the <lzma.h> header file. */
 /* #undef HAVE_LZMA_H */
 
index ffffab9638adcb7db52bc32a40038aaad9cb8e06..96d08aa6c2d3bf1f40c6841d18e5c51b329cee8e 100644 (file)
@@ -1745,15 +1745,6 @@ decompression_cleanup(struct archive_read *a)
 #if defined(HAVE_LZMA_H) && defined(HAVE_LIBLZMA)
        if (xar->lzstream_valid)
                lzma_end(&(xar->lzstream));
-#elif defined(HAVE_LZMA_H) && defined(HAVE_LIBLZMA)
-       if (xar->lzstream_valid) {
-               if (lzmadec_end(&(xar->lzstream)) != LZMADEC_OK) {
-                       archive_set_error(&a->archive,
-                           ARCHIVE_ERRNO_MISC,
-                           "Failed to clean up lzmadec decompressor");
-                       r = ARCHIVE_FATAL;
-               }
-       }
 #endif
        return (r);
 }