@@ -20,8 +20,7 @@ const char *Circle::type() const
20
20
21
21
Circle::~Circle ()
22
22
{
23
- if (this != nullptr )
24
- delete this ;
23
+ // delete this;
25
24
}
26
25
27
26
Rectangle::Rectangle (uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t cornerRadius, uint8_t thickness)
@@ -39,8 +38,7 @@ const char *Rectangle::type() const
39
38
40
39
Rectangle::~Rectangle ()
41
40
{
42
- if (this != nullptr )
43
- delete this ;
41
+ // delete this;
44
42
}
45
43
46
44
Line::Line (uint8_t startX, uint8_t startY, uint8_t endX, uint8_t endY, uint8_t thickness)
@@ -58,8 +56,7 @@ const char *Line::type() const
58
56
59
57
Line::~Line ()
60
58
{
61
- if (this != nullptr )
62
- delete this ;
59
+ // delete this;
63
60
}
64
61
65
62
Bitmap::Bitmap (const uint8_t *dataSet, uint8_t x, uint8_t y, uint8_t width, uint8_t height)
@@ -77,8 +74,7 @@ const char *Bitmap::type() const
77
74
78
75
Bitmap::~Bitmap ()
79
76
{
80
- if (this != nullptr )
81
- delete this ;
77
+ // delete this;
82
78
}
83
79
84
80
Text::Text (String text, uint8_t x, uint8_t y)
@@ -96,8 +92,7 @@ const char *Text::type() const
96
92
97
93
Text::~Text ()
98
94
{
99
- if (this != nullptr )
100
- delete this ;
95
+ // delete this;
101
96
}
102
97
103
98
HighlightedText::HighlightedText (String text, uint8_t x, uint8_t y)
@@ -115,8 +110,7 @@ const char *HighlightedText::type() const
115
110
116
111
HighlightedText::~HighlightedText ()
117
112
{
118
- if (this != nullptr )
119
- delete this ;
113
+ // delete this;
120
114
}
121
115
122
116
AnimatedText::AnimatedText (String text, uint8_t x, uint8_t y, int delay, bool highlight)
@@ -134,8 +128,7 @@ const char *AnimatedText::type() const
134
128
135
129
AnimatedText::~AnimatedText ()
136
130
{
137
- if (this != nullptr )
138
- delete this ;
131
+ // delete this;
139
132
}
140
133
141
134
GridView::GridView (Drawable *drawable, uint8_t count, uint8_t countPerLine, uint8_t startX, uint8_t startY, uint8_t seperationX, uint8_t seperationY)
@@ -239,6 +232,5 @@ const char *GridView::type() const
239
232
240
233
GridView::~GridView ()
241
234
{
242
- if (this != nullptr )
243
- delete this ;
235
+ // delete this;
244
236
}
0 commit comments