From e030b1d56785405cb35531758d603be88af9b487 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Jul 2022 11:16:28 +1000 Subject: Apply rule-of-zero to delete standard methods where possible as handled by contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations. --- src/RunStyles.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/RunStyles.h') diff --git a/src/RunStyles.h b/src/RunStyles.h index 76d75d75a..44367adf7 100644 --- a/src/RunStyles.h +++ b/src/RunStyles.h @@ -34,12 +34,6 @@ private: void RemoveRunIfSameAsPrevious(DISTANCE run); public: RunStyles(); - // Deleted so RunStyles objects can not be copied. - RunStyles(const RunStyles &) = delete; - RunStyles(RunStyles &&) = delete; - void operator=(const RunStyles &) = delete; - void operator=(RunStyles &&) = delete; - ~RunStyles(); DISTANCE Length() const noexcept; STYLE ValueAt(DISTANCE position) const noexcept; DISTANCE FindNextChange(DISTANCE position, DISTANCE end) const noexcept; -- cgit v1.2.3