]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Drop duplicate and unused filelist parsing function
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 May 2021 15:25:13 +0000 (15:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 May 2021 15:25:13 +0000 (15:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index d3ef3fa49f358fa9542dbb206d5c5db126368025..783020e17020d555e741bf34f60ba0aad37b9529 100644 (file)
@@ -477,29 +477,6 @@ CLEANUP:
        return r;
 }
 
-static int pakfire_archive_parse_entry_filelist(PakfireArchive archive,
-               struct archive* a, struct archive_entry* e) {
-       char* data;
-       size_t data_size;
-
-       int r = pakfire_archive_copy_data_to_buffer(archive->pakfire, a, e, &data, &data_size);
-       if (r) {
-               return 1;
-       }
-
-       // Terminate string.
-       data[data_size] = '\0';
-
-       if (data_size > 0) {
-               r = pakfire_filelist_create_from_file(&archive->filelist, archive->pakfire,
-                       data, archive->format);
-       }
-
-       free(data);
-
-       return r;
-}
-
 static int pakfire_archive_parse_entry_checksums(PakfireArchive archive,
                struct archive* a, struct archive_entry* e) {
        char* data;