aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Partitioning.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
commite030b1d56785405cb35531758d603be88af9b487 (patch)
tree9a428393f7963d50a0b7557e7c77ac1be37c7bb3 /src/Partitioning.h
parent6e6641d4733903d3c365fd9348f3656ff7000ddf (diff)
downloadscintilla-mirror-e030b1d56785405cb35531758d603be88af9b487.tar.gz
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.
Diffstat (limited to 'src/Partitioning.h')
-rw-r--r--src/Partitioning.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h
index 2836b66dd..17bc1998e 100644
--- a/src/Partitioning.h
+++ b/src/Partitioning.h
@@ -78,15 +78,6 @@ public:
body.Insert(1, 0); // This is the end of the first partition and will be the start of the second
}
- // Deleted so Partitioning objects can not be copied.
- Partitioning(const Partitioning &) = delete;
- Partitioning(Partitioning &&) = delete;
- Partitioning &operator=(const Partitioning &) = delete;
- Partitioning &operator=(Partitioning &&) = default;
-
- ~Partitioning() {
- }
-
T Partitions() const noexcept {
return static_cast<T>(body.Length())-1;
}