Skip to content

Commit 32fd59b

Browse files
committed
LibGUI: Remove some hand-rolled type information from Widget
1 parent 167906d commit 32fd59b

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

Libraries/LibGUI/AbstractButton.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ class AbstractButton : public Widget {
7373
void paint_text(Painter&, const Gfx::IntRect&, const Gfx::Font&, Gfx::TextAlignment);
7474

7575
private:
76-
virtual bool is_abstract_button() const final { return true; }
77-
7876
String m_text;
7977
bool m_checked { false };
8078
bool m_checkable { false };

Libraries/LibGUI/RadioButton.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class RadioButton : public AbstractButton {
4747
using AbstractButton::auto_repeat_interval;
4848
using AbstractButton::set_auto_repeat_interval;
4949

50-
virtual bool is_radio_button() const final { return true; }
51-
5250
static Gfx::IntSize circle_size();
5351
};
5452

Libraries/LibGUI/Widget.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@ class Widget : public Core::Object {
282282

283283
Vector<Widget*> child_widgets() const;
284284

285-
virtual bool is_radio_button() const { return false; }
286-
virtual bool is_abstract_button() const { return false; }
287-
288285
void do_layout();
289286

290287
Gfx::Palette palette() const;

0 commit comments

Comments
 (0)