mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibCore: Remove some hand-rolled type information from Core::Object
Both is_action() and is_window() can be answered by RTTI.
This commit is contained in:
parent
32fd59b471
commit
42179715c3
5 changed files with 2 additions and 8 deletions
|
@ -144,8 +144,6 @@ public:
|
|||
void set_group(Badge<ActionGroup>, ActionGroup*);
|
||||
|
||||
private:
|
||||
virtual bool is_action() const override { return true; }
|
||||
|
||||
Action(const StringView& text, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);
|
||||
Action(const StringView& text, const Shortcut&, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);
|
||||
Action(const StringView& text, const Shortcut&, RefPtr<Gfx::Bitmap>&& icon, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue