aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
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/PerLine.cxx
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/PerLine.cxx')
-rw-r--r--src/PerLine.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index f3fddcf27..78f7c7dc5 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -34,10 +34,6 @@ using namespace Scintilla::Internal;
MarkerHandleSet::MarkerHandleSet() {
}
-MarkerHandleSet::~MarkerHandleSet() {
- mhList.clear();
-}
-
bool MarkerHandleSet::Empty() const noexcept {
return mhList.empty();
}
@@ -93,9 +89,6 @@ void MarkerHandleSet::CombineWith(MarkerHandleSet *other) noexcept {
mhList.splice_after(mhList.before_begin(), other->mhList);
}
-LineMarkers::~LineMarkers() {
-}
-
void LineMarkers::Init() {
markers.DeleteAll();
}
@@ -219,9 +212,6 @@ void LineMarkers::DeleteMarkFromHandle(int markerHandle) {
}
}
-LineLevels::~LineLevels() {
-}
-
void LineLevels::Init() {
levels.DeleteAll();
}
@@ -281,9 +271,6 @@ int LineLevels::GetLevel(Sci::Line line) const noexcept {
}
}
-LineState::~LineState() {
-}
-
void LineState::Init() {
lineStates.DeleteAll();
}
@@ -355,9 +342,6 @@ std::unique_ptr<char[]>AllocateAnnotation(size_t length, int style) {
}
-LineAnnotation::~LineAnnotation() {
-}
-
bool LineAnnotation::Empty() const noexcept {
return annotations.Length() == 0;
}
@@ -482,9 +466,6 @@ int LineAnnotation::Lines(Sci::Line line) const noexcept {
return 0;
}
-LineTabstops::~LineTabstops() {
-}
-
void LineTabstops::Init() {
tabstops.DeleteAll();
}