diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-03-29 17:39:34 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-04-01 14:57:15 +0200 |
commit | e186da17213826ae22b73584641d2e8cd10b24d5 (patch) | |
tree | 11ff4c74a32d03fafaa1abcb68ec85a890fa40d8 /libqpdf/SparseOHArray.cc | |
parent | 1c85e7ece4d832b114f91c1858ba2b24964d5d9e (diff) | |
download | qpdf-e186da17213826ae22b73584641d2e8cd10b24d5.tar.zst |
Remove SparseOHArray::at, setAt and append
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r-- | libqpdf/SparseOHArray.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc index e0c2d41d..6a1c976a 100644 --- a/libqpdf/SparseOHArray.cc +++ b/libqpdf/SparseOHArray.cc @@ -1,27 +1,5 @@ #include <qpdf/SparseOHArray.hh> -#include <stdexcept> - -static const QPDFObjectHandle null_oh = QPDFObjectHandle::newNull(); - -QPDFObjectHandle -SparseOHArray::at(int idx) const -{ - auto const& iter = elements.find(idx); - return iter == elements.end() ? null_oh : (*iter).second; -} - -void -SparseOHArray::remove_last() -{ - if (this->n_elements == 0) { - throw std::logic_error("INTERNAL ERROR: attempt to remove" - " last item from empty SparseOHArray"); - } - --this->n_elements; - this->elements.erase(this->n_elements); -} - void SparseOHArray::disconnect() { @@ -42,15 +20,3 @@ SparseOHArray::copy() } return result; } - -SparseOHArray::const_iterator -SparseOHArray::begin() const -{ - return this->elements.begin(); -} - -SparseOHArray::const_iterator -SparseOHArray::end() const -{ - return this->elements.end(); -} |