diff options
-rw-r--r-- | src/SparseVector.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/SparseVector.h b/src/SparseVector.h index 31815c789..cfd9db02e 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -36,14 +36,7 @@ public: SparseVector(SparseVector &&) = delete; void operator=(const SparseVector &) = delete; void operator=(SparseVector &&) = delete; - ~SparseVector() { - starts.reset(); - // starts dead here but not used by ClearValue. - for (Sci::Position part = 0; part < values->Length(); part++) { - ClearValue(part); - } - values.reset(); - } + ~SparseVector() noexcept = default; Sci::Position Length() const noexcept { return starts->Length(); } |