From f415903730145517976c47a9aa65fe4ee5c30b59 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 8 May 2025 09:57:59 -0400 Subject: pkarr: remove pk_delete from pk_arr_t dtor --- pkarr.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkarr.h') diff --git a/pkarr.h b/pkarr.h index baa91e8..b8c7829 100644 --- a/pkarr.h +++ b/pkarr.h @@ -35,7 +35,6 @@ struct pk_arr_t : public pk_arr { pk_arr_t(pk_arr_t &&other); pk_arr_t &operator=(const pk_arr_t &other); pk_arr_t &operator=(pk_arr_t &&other); - ~pk_arr_t(); T &operator[](size_t index); }; template @@ -84,10 +83,6 @@ pk_arr_t::operator=(pk_arr_t &&other) { return *this; } template -pk_arr_t::~pk_arr_t() { - if (this->data != NULL) pk_delete(this->data, this->stride * this->reserved, this->bkt); -} -template T &pk_arr_t::operator[](size_t index) { if(index >= this->next) throw "pk_arr_t::operator[] out of range"; return reinterpret_cast(this->data)[index]; -- cgit v1.2.3