mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Remove redundant QPDF_Array::addExplicitElementsToList
This commit is contained in:
parent
b62ad7ecc6
commit
de29fd56c4
@ -154,11 +154,3 @@ QPDF_Array::eraseItem(int at)
|
||||
{
|
||||
this->elements.erase(QIntC::to_size(at));
|
||||
}
|
||||
|
||||
void
|
||||
QPDF_Array::addExplicitElementsToList(std::list<QPDFObjectHandle>& l) const
|
||||
{
|
||||
for (auto const& iter: this->elements) {
|
||||
l.push_back(iter.second);
|
||||
}
|
||||
}
|
||||
|
@ -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<QPDFObjectHandle>&) const;
|
||||
|
||||
private:
|
||||
QPDF_Array(std::vector<QPDFObjectHandle> const& items);
|
||||
QPDF_Array(std::vector<std::shared_ptr<QPDFObject>>&& items);
|
||||
|
Loading…
Reference in New Issue
Block a user