Commit 3b3bcab349ace035252d40908d58159d83f4d506

Authored by m-holger
Committed by Jay Berkenbilt
1 parent 9eda1fdc

Remove QPDF_Stream::setStreamDescription

libqpdf/QPDF_Stream.cc
@@ -127,7 +127,11 @@ QPDF_Stream::QPDF_Stream( @@ -127,7 +127,11 @@ QPDF_Stream::QPDF_Stream(
127 throw std::logic_error("stream object instantiated with non-dictionary " 127 throw std::logic_error("stream object instantiated with non-dictionary "
128 "object for dictionary"); 128 "object for dictionary");
129 } 129 }
130 - setStreamDescription(); 130 + setDescription(
  131 + this->qpdf,
  132 + this->qpdf->getFilename() + ", stream object " +
  133 + QUtil::int_to_string(this->objid) + " " +
  134 + QUtil::int_to_string(this->generation));
131 } 135 }
132 136
133 void 137 void
@@ -297,16 +301,6 @@ QPDF_Stream::setDescription(QPDF* qpdf, std::string const& description) @@ -297,16 +301,6 @@ QPDF_Stream::setDescription(QPDF* qpdf, std::string const& description)
297 } 301 }
298 302
299 void 303 void
300 -QPDF_Stream::setStreamDescription()  
301 -{  
302 - setDescription(  
303 - this->qpdf,  
304 - this->qpdf->getFilename() + ", stream object " +  
305 - QUtil::int_to_string(this->objid) + " " +  
306 - QUtil::int_to_string(this->generation));  
307 -}  
308 -  
309 -void  
310 QPDF_Stream::setDictDescription() 304 QPDF_Stream::setDictDescription()
311 { 305 {
312 QPDF* qpdf = 0; 306 QPDF* qpdf = 0;
libqpdf/qpdf/QPDF_Stream.hh
@@ -101,7 +101,6 @@ class QPDF_Stream: public QPDFObject @@ -101,7 +101,6 @@ class QPDF_Stream: public QPDFObject
101 qpdf_offset_t offset, 101 qpdf_offset_t offset,
102 std::string const& message); 102 std::string const& message);
103 void setDictDescription(); 103 void setDictDescription();
104 - void setStreamDescription();  
105 104
106 QPDF* qpdf; 105 QPDF* qpdf;
107 int objid; 106 int objid;