Commit 25dd3c67501663353ecdd881bb4322458466cbc0

Authored by Jay Berkenbilt
1 parent c6cfd645

Remove QPDF::copyForeignObject with unused parameter

ChangeLog
1 2019-06-21 Jay Berkenbilt <ejb@ql.org> 1 2019-06-21 Jay Berkenbilt <ejb@ql.org>
2 2
  3 + * Source-level incompatibility: remove the version
  4 + QPDF::copyForeignObject with an unused boolean parameter. If you
  5 + were, for some reason, calling this, just take the parameter away.
  6 +
3 * Source-level incompatibility: rename QUtil::strcasecmp to 7 * Source-level incompatibility: rename QUtil::strcasecmp to
4 QUtil::str_compare_nocase. This is a non-compatible change, but 8 QUtil::str_compare_nocase. This is a non-compatible change, but
5 QUtil::strcasecmp is hardly the most important part of qpdf's API. 9 QUtil::strcasecmp is hardly the most important part of qpdf's API.
1 Next ABI 1 Next ABI
2 ======== 2 ========
3 3
4 - * Get rid of the version of QPDF::copyForeignObject with the bool  
5 - unused parameter.  
6 -  
7 * Remove version of QPDFTokenizer::expectInlineImage with no 4 * Remove version of QPDFTokenizer::expectInlineImage with no
8 arguments. 5 arguments.
9 6
include/qpdf/QPDF.hh
@@ -934,9 +934,6 @@ class QPDF @@ -934,9 +934,6 @@ class QPDF
934 QPDFObjectHandle& stream_dict, bool is_attachment_stream, 934 QPDFObjectHandle& stream_dict, bool is_attachment_stream,
935 std::vector<PointerHolder<Pipeline> >& heap); 935 std::vector<PointerHolder<Pipeline> >& heap);
936 936
937 - // Unused copyForeignObject -- remove at next ABI change  
938 - QPDFObjectHandle copyForeignObject(  
939 - QPDFObjectHandle foreign, bool unused);  
940 // Methods to support object copying 937 // Methods to support object copying
941 void reserveObjects(QPDFObjectHandle foreign, ObjCopier& obj_copier, 938 void reserveObjects(QPDFObjectHandle foreign, ObjCopier& obj_copier,
942 bool top); 939 bool top);
libqpdf/QPDF.cc
@@ -2142,13 +2142,6 @@ QPDF::replaceReserved(QPDFObjectHandle reserved, @@ -2142,13 +2142,6 @@ QPDF::replaceReserved(QPDFObjectHandle reserved,
2142 } 2142 }
2143 2143
2144 QPDFObjectHandle 2144 QPDFObjectHandle
2145 -QPDF::copyForeignObject(QPDFObjectHandle foreign, bool)  
2146 -{  
2147 - // This method will be removed next time the ABI is changed.  
2148 - return copyForeignObject(foreign);  
2149 -}  
2150 -  
2151 -QPDFObjectHandle  
2152 QPDF::copyForeignObject(QPDFObjectHandle foreign) 2145 QPDF::copyForeignObject(QPDFObjectHandle foreign)
2153 { 2146 {
2154 // Do not preclude use of copyForeignObject on page objects. It is 2147 // Do not preclude use of copyForeignObject on page objects. It is