From 4b05f5d893bd4cc181da4d18d9107558b613de6e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Oct 2022 19:41:23 +0200 Subject: [PATCH 1/1] Remove unnecessary copy constructors (default ones are OK). --- src/lib/enum_indexed_vector.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lib/enum_indexed_vector.h b/src/lib/enum_indexed_vector.h index 5032a0bf2..0187daba2 100644 --- a/src/lib/enum_indexed_vector.h +++ b/src/lib/enum_indexed_vector.h @@ -34,19 +34,6 @@ public: : _data(static_cast(Enum::COUNT)) {} - EnumIndexedVector(EnumIndexedVector const& other) - : _data(other._data) - {} - - EnumIndexedVector& operator=(EnumIndexedVector const& other) { - if (this == &other) { - return *this; - } - - _data = other._data; - return *this; - } - typename std::vector::reference operator[](int index) { return _data[index]; } -- 2.30.2