From ca2b4e02ed667aa7da6e24d29d6f79d0dda5abb1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Jun 2023 09:50:16 +0530 Subject: [PATCH] Remove PoDoFo 0.10.0 compat path Since podofo 0.10.1 is released and has various performance and security fixes over 0.10.0, everyone should use that. --- src/calibre/utils/podofo/doc.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/calibre/utils/podofo/doc.cpp b/src/calibre/utils/podofo/doc.cpp index 8407e2bd1d..0d3adda520 100644 --- a/src/calibre/utils/podofo/doc.cpp +++ b/src/calibre/utils/podofo/doc.cpp @@ -391,11 +391,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) { unsigned total_pages_to_append = 0; for (auto src : docs) total_pages_to_append += src->GetPages().GetCount(); unsigned base_page_index = dest->GetPages().GetCount(); -#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0) dest->GetPages().CreatePagesAt(base_page_index, total_pages_to_append, Rect()); -#else - while (total_pages_to_append--) dest->GetPages().CreatePage(Rect()); -#endif for (auto src : docs) { MapReferences ref_map; std::vector pages;