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/ContractionState.cxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/ContractionState.cxx') diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index b64e044ab..b36e1ebd8 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -59,12 +59,6 @@ class ContractionState final : public IContractionState { public: ContractionState() noexcept; - // Deleted so ContractionState objects can not be copied. - ContractionState(const ContractionState &) = delete; - void operator=(const ContractionState &) = delete; - ContractionState(ContractionState &&) = delete; - void operator=(ContractionState &&) = delete; - ~ContractionState() override; void Clear() noexcept override; @@ -101,9 +95,6 @@ template ContractionState::ContractionState() noexcept : linesInDocument(1) { } -template -ContractionState::~ContractionState() = default; - template void ContractionState::EnsureData() { if (OneToOne()) { -- cgit v1.2.3