summaryrefslogtreecommitdiffstats
path: root/libqpdf/SparseOHArray.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r--libqpdf/SparseOHArray.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc
index 390f942a..e0c2d41d 100644
--- a/libqpdf/SparseOHArray.cc
+++ b/libqpdf/SparseOHArray.cc
@@ -30,25 +30,6 @@ SparseOHArray::disconnect()
}
}
-void
-SparseOHArray::erase(int at)
-{
- auto end = elements.end();
- if (auto iter = elements.lower_bound(at); iter != end) {
- if (iter->first == at) {
- iter++;
- elements.erase(at);
- }
-
- while (iter != end) {
- auto nh = elements.extract(iter++);
- --nh.key();
- elements.insert(std::move(nh));
- }
- }
- --n_elements;
-}
-
SparseOHArray
SparseOHArray::copy()
{