aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2015-11-10 18:22:40 +0100
committerJay Berkenbilt <ejb@ql.org>2015-11-10 18:22:40 +0100
commite0e9d646740285f5305c59dc420e39129a80594a (patch)
tree5f8071fcd2a6ae1adb83ce056d0453d37ab8a68a
parente5abc789a26732552388fb9ca97985f8401327b1 (diff)
downloadqpdf-e0e9d646740285f5305c59dc420e39129a80594a.tar.zst
Remove some ABI compatibility private methods
Since we have to bump soname, remove some private methods that were just there for binary compatibility
-rw-r--r--include/qpdf/QPDFWriter.hh19
-rw-r--r--libqpdf/QPDFWriter.cc21
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);
}