aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-08-28 09:42:05 +1000
committerNeil <nyamatongwe@gmail.com>2021-08-28 09:42:05 +1000
commitf0e6ea3f244af47843a5c2d42066054467771685 (patch)
tree6a9e90896e3311b9ed69561917c72a3607e931a9 /src/Decoration.cxx
parent2413db664abc3389f11be3a6839acc618a70d1d0 (diff)
downloadscintilla-mirror-f0e6ea3f244af47843a5c2d42066054467771685.tar.gz
Follow rule-of-zero by removing unnecessary destructors.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r--src/Decoration.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx
index 163347ce9..a26eecd1c 100644
--- a/src/Decoration.cxx
+++ b/src/Decoration.cxx
@@ -88,7 +88,6 @@ class DecorationList : public IDecorationList {
public:
DecorationList();
- ~DecorationList() override;
const std::vector<const IDecoration*> &View() const noexcept override {
return decorationView;
@@ -127,11 +126,6 @@ DecorationList<POS>::DecorationList() : currentIndicator(0), currentValue(1), cu
}
template <typename POS>
-DecorationList<POS>::~DecorationList() {
- current = nullptr;
-}
-
-template <typename POS>
Decoration<POS> *DecorationList<POS>::DecorationFromIndicator(int indicator) noexcept {
for (const std::unique_ptr<Decoration<POS>> &deco : decorationList) {
if (deco->Indicator() == indicator) {