LibGUI+HackStudio: Remove editing specific hacks from GUI::Command

Use is<T> to check for specific types of command in HackStudio instead
of cluttering up GUI::Command with specialized getters.
This commit is contained in:
Andreas Kling 2021-05-02 14:49:46 +02:00
commit 68a0e4f8d5
Notes: sideshowbarker 2024-07-18 18:47:06 +09:00
3 changed files with 4 additions and 9 deletions

View file

@ -19,9 +19,6 @@ public:
String action_text() const { return m_action_text; }
virtual bool is_insert_text() const { return false; }
virtual bool is_remove_text() const { return false; }
protected:
Command() { }
void set_action_text(const String& text) { m_action_text = text; }