Remove unnecessary copy constructors (default ones are OK).
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Oct 2022 17:41:23 +0000 (19:41 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 26 Oct 2022 17:41:23 +0000 (19:41 +0200)
src/lib/enum_indexed_vector.h

index 5032a0bf20826a86a7dd69aeafed9b0b72711064..0187daba2f0a93389d6448d345f61cf4492b1762 100644 (file)
@@ -34,19 +34,6 @@ public:
                : _data(static_cast<int>(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<Type>::reference operator[](int index) {
                return _data[index];
        }