diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-01-01 13:47:03 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-04-01 14:56:29 +0200 |
commit | 182c2480df3d2dee3e430e02afe6bbee3e45eadd (patch) | |
tree | 6c5c834617b09c1bf8628ae340068b5a96ad91b0 /libqpdf/SparseOHArray.cc | |
parent | 4d37389befc705b671d8fa7a1da2b7117b50f454 (diff) | |
download | qpdf-182c2480df3d2dee3e430e02afe6bbee3e45eadd.tar.zst |
Refactor QPDF_Array::setItem and rename to setAt
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r-- | libqpdf/SparseOHArray.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc index 773d7309..9904af1b 100644 --- a/libqpdf/SparseOHArray.cc +++ b/libqpdf/SparseOHArray.cc @@ -31,19 +31,6 @@ SparseOHArray::disconnect() } void -SparseOHArray::setAt(int idx, QPDFObjectHandle oh) -{ - if (idx >= this->n_elements) { - throw std::logic_error("bounds error setting item in SparseOHArray"); - } - if (oh.isDirectNull()) { - this->elements.erase(idx); - } else { - this->elements[idx] = oh.getObj(); - } -} - -void SparseOHArray::erase(int at) { auto end = elements.end(); |