diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc index de34103..93fbf92 100644 --- a/libqpdf/QPDF_Array.cc +++ b/libqpdf/QPDF_Array.cc @@ -154,11 +154,3 @@ QPDF_Array::eraseItem(int at) { this->elements.erase(QIntC::to_size(at)); } - -void -QPDF_Array::addExplicitElementsToList(std::list& l) const -{ - for (auto const& iter: this->elements) { - l.push_back(iter.second); - } -} diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh index 56c0101..88397ba 100644 --- a/libqpdf/qpdf/QPDF_Array.hh +++ b/libqpdf/qpdf/QPDF_Array.hh @@ -32,11 +32,6 @@ class QPDF_Array: public QPDFValue void appendItem(QPDFObjectHandle const& item); void eraseItem(int at); - // Helper methods for QPDF and QPDFObjectHandle -- these are - // public methods since the whole class is not part of the public - // API. Otherwise, these would be wrapped in accessor classes. - void addExplicitElementsToList(std::list&) const; - private: QPDF_Array(std::vector const& items); QPDF_Array(std::vector>&& items);