aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/SparseOHArray.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r--libqpdf/SparseOHArray.cc34
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();
-}