diff options
-rw-r--r-- | include/qpdf/QPDFWriter.hh | 19 | ||||
-rw-r--r-- | libqpdf/QPDFWriter.cc | 21 |
2 files changed, 1 insertions, 39 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 747386bf..70d1034b 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -312,8 +312,6 @@ class QPDFWriter void writeObjectStream(QPDFObjectHandle object); void writeObject(QPDFObjectHandle object, int object_stream_index = -1); void writeTrailer(trailer_e which, int size, - bool xref_stream, qpdf_offset_t prev = 0); - void writeTrailer(trailer_e which, int size, bool xref_stream, qpdf_offset_t prev, int linearization_pass); void unparseObject(QPDFObjectHandle object, int level, @@ -365,14 +363,6 @@ class QPDFWriter bool suppress_offsets, int hint_id, qpdf_offset_t hint_offset, - qpdf_offset_t hint_length); - qpdf_offset_t writeXRefTable( - trailer_e which, int first, int last, int size, - // for linearization - qpdf_offset_t prev, - bool suppress_offsets, - int hint_id, - qpdf_offset_t hint_offset, qpdf_offset_t hint_length, int linearization_pass); qpdf_offset_t writeXRefStream( @@ -386,15 +376,6 @@ class QPDFWriter int hint_id, qpdf_offset_t hint_offset, qpdf_offset_t hint_length, - bool skip_compression); - qpdf_offset_t writeXRefStream( - int objid, int max_id, qpdf_offset_t max_offset, - trailer_e which, int first, int last, int size, - // for linearization - qpdf_offset_t prev, - int hint_id, - qpdf_offset_t hint_offset, - qpdf_offset_t hint_length, bool skip_compression, int linearization_pass); int calculateXrefStreamPadding(int xref_bytes); diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index ef3210c6..01748fc7 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -1110,13 +1110,6 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) void QPDFWriter::writeTrailer(trailer_e which, int size, bool xref_stream, - qpdf_offset_t prev) -{ - writeTrailer(which, size, xref_stream, prev, 0); -} - -void -QPDFWriter::writeTrailer(trailer_e which, int size, bool xref_stream, qpdf_offset_t prev, int linearization_pass) { QPDFObjectHandle trailer = getTrimmedTrailer(); @@ -2468,18 +2461,7 @@ QPDFWriter::writeHintStream(int hint_id) qpdf_offset_t QPDFWriter::writeXRefTable(trailer_e which, int first, int last, int size) { - return writeXRefTable(which, first, last, size, 0, false, 0, 0, 0); -} - -qpdf_offset_t -QPDFWriter::writeXRefTable(trailer_e which, int first, int last, int size, - qpdf_offset_t prev, bool suppress_offsets, - int hint_id, qpdf_offset_t hint_offset, - qpdf_offset_t hint_length) -{ - // ABI compatibility - return writeXRefTable(which, first, last, size, prev, suppress_offsets, - hint_id, hint_offset, hint_length, 0); + return writeXRefTable(which, first, last, size, 0, false, 0, 0, 0, 0); } qpdf_offset_t @@ -2526,7 +2508,6 @@ qpdf_offset_t QPDFWriter::writeXRefStream(int objid, int max_id, qpdf_offset_t max_offset, trailer_e which, int first, int last, int size) { - // ABI compatibility return writeXRefStream(objid, max_id, max_offset, which, first, last, size, 0, 0, 0, 0, false, 0); } |