diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-01-30 23:21:22 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-02-19 03:05:46 +0100 |
commit | 05ff619b09dc0c2c51f7f56dacd067f2c3baedbc (patch) | |
tree | 862721b375f57801eb3470a29d592c3d16f67a8b | |
parent | 55ee55394c1434da62c01e01a537eee5aa909eba (diff) | |
download | qpdf-05ff619b09dc0c2c51f7f56dacd067f2c3baedbc.tar.zst |
Remove redundant method
Remove a redundant method that was equal to another one with
additional arguments. This breaks binary compatibility, but there are
other ABI breaking changes in the upcoming release, so now is the time
to do it.
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 13 | ||||
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 10 |
2 files changed, 4 insertions, 19 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 3dd09168..cd4c4767 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -65,8 +65,8 @@ class QPDFObjectHandle // QPDFWriter may, in some cases, add compression, but if it // does, it will update the filters as needed. Every call to // provideStreamData for a given stream must write the same - // data.The object ID and generation passed to this method are - // those that belong to the stream on behalf of which the + // data. The object ID and generation passed to this method + // are those that belong to the stream on behalf of which the // provider is called. They may be ignored or used by the // implementation for indexing or other purposes. This // information is made available just to make it more @@ -442,13 +442,8 @@ class QPDFObjectHandle bool pipeStreamData(Pipeline*, unsigned long encode_flags, qpdf_stream_decode_level_e decode_level, - bool suppress_warnings = false); - QPDF_DLL - bool pipeStreamData(Pipeline*, - unsigned long encode_flags, - qpdf_stream_decode_level_e decode_level, - bool suppress_warnings, - bool will_retry); + bool suppress_warnings = false, + bool will_retry = false); // Legacy pipeStreamData. This maps to the the flags-based // pipeStreamData as follows: diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 1fa02427..fb15cb1c 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -499,16 +499,6 @@ bool QPDFObjectHandle::pipeStreamData(Pipeline* p, unsigned long encode_flags, qpdf_stream_decode_level_e decode_level, - bool suppress_warnings) -{ - return pipeStreamData( - p, encode_flags, decode_level, suppress_warnings, false); -} - -bool -QPDFObjectHandle::pipeStreamData(Pipeline* p, - unsigned long encode_flags, - qpdf_stream_decode_level_e decode_level, bool suppress_warnings, bool will_retry) { assertStream(); |