diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-26 19:41:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-26 19:41:23 +0200 |
| commit | 4b05f5d893bd4cc181da4d18d9107558b613de6e (patch) | |
| tree | b31dd51a78e6c48a9139d5b2b87d3da6eea1cedd | |
| parent | 1a43dcc9b0d4c40cb8a19f2ff475c67ace4ef6a2 (diff) | |
Remove unnecessary copy constructors (default ones are OK).
| -rw-r--r-- | src/lib/enum_indexed_vector.h | 13 |
1 files changed, 0 insertions, 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<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]; } |
