From 3b3bcab349ace035252d40908d58159d83f4d506 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 25 Jun 2022 11:46:47 +0100 Subject: Remove QPDF_Stream::setStreamDescription --- libqpdf/QPDF_Stream.cc | 16 +++++----------- libqpdf/qpdf/QPDF_Stream.hh | 1 - 2 files changed, 5 insertions(+), 12 deletions(-) (limited to 'libqpdf') diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc index c3e5f747..edb4a739 100644 --- a/libqpdf/QPDF_Stream.cc +++ b/libqpdf/QPDF_Stream.cc @@ -127,7 +127,11 @@ QPDF_Stream::QPDF_Stream( throw std::logic_error("stream object instantiated with non-dictionary " "object for dictionary"); } - setStreamDescription(); + setDescription( + this->qpdf, + this->qpdf->getFilename() + ", stream object " + + QUtil::int_to_string(this->objid) + " " + + QUtil::int_to_string(this->generation)); } void @@ -296,16 +300,6 @@ QPDF_Stream::setDescription(QPDF* qpdf, std::string const& description) setDictDescription(); } -void -QPDF_Stream::setStreamDescription() -{ - setDescription( - this->qpdf, - this->qpdf->getFilename() + ", stream object " + - QUtil::int_to_string(this->objid) + " " + - QUtil::int_to_string(this->generation)); -} - void QPDF_Stream::setDictDescription() { diff --git a/libqpdf/qpdf/QPDF_Stream.hh b/libqpdf/qpdf/QPDF_Stream.hh index 51b215e2..4aaee0a2 100644 --- a/libqpdf/qpdf/QPDF_Stream.hh +++ b/libqpdf/qpdf/QPDF_Stream.hh @@ -101,7 +101,6 @@ class QPDF_Stream: public QPDFObject qpdf_offset_t offset, std::string const& message); void setDictDescription(); - void setStreamDescription(); QPDF* qpdf; int objid; -- cgit v1.2.3-54-g00ecf