Commit de29fd56c487dcf08f2af66f47576f147b20be82
1 parent
b62ad7ec
Remove redundant QPDF_Array::addExplicitElementsToList
Showing
2 changed files
with
0 additions
and
13 deletions
libqpdf/QPDF_Array.cc
| ... | ... | @@ -154,11 +154,3 @@ QPDF_Array::eraseItem(int at) |
| 154 | 154 | { |
| 155 | 155 | this->elements.erase(QIntC::to_size(at)); |
| 156 | 156 | } |
| 157 | - | |
| 158 | -void | |
| 159 | -QPDF_Array::addExplicitElementsToList(std::list<QPDFObjectHandle>& l) const | |
| 160 | -{ | |
| 161 | - for (auto const& iter: this->elements) { | |
| 162 | - l.push_back(iter.second); | |
| 163 | - } | |
| 164 | -} | ... | ... |
libqpdf/qpdf/QPDF_Array.hh
| ... | ... | @@ -32,11 +32,6 @@ class QPDF_Array: public QPDFValue |
| 32 | 32 | void appendItem(QPDFObjectHandle const& item); |
| 33 | 33 | void eraseItem(int at); |
| 34 | 34 | |
| 35 | - // Helper methods for QPDF and QPDFObjectHandle -- these are | |
| 36 | - // public methods since the whole class is not part of the public | |
| 37 | - // API. Otherwise, these would be wrapped in accessor classes. | |
| 38 | - void addExplicitElementsToList(std::list<QPDFObjectHandle>&) const; | |
| 39 | - | |
| 40 | 35 | private: |
| 41 | 36 | QPDF_Array(std::vector<QPDFObjectHandle> const& items); |
| 42 | 37 | QPDF_Array(std::vector<std::shared_ptr<QPDFObject>>&& items); | ... | ... |