1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

LibGUI: Remove remaining fallible Layout APIs

This commit is contained in:
Andreas Kling 2023-08-14 06:47:48 +02:00
parent 58e482a06d
commit b679094529
2 changed files with 17 additions and 39 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -38,9 +38,6 @@ public:
void add_layout(OwnPtr<Layout>&&);
void add_spacer();
ErrorOr<void> try_add_widget(Widget&);
ErrorOr<void> try_insert_widget_before(Widget& widget, Widget& before_widget);
void remove_widget(Widget&);
virtual void run(Widget&) = 0;
@ -73,7 +70,6 @@ protected:
OwnPtr<Layout> layout {};
};
void add_entry(Entry&&);
ErrorOr<void> try_add_entry(Entry&&);
WeakPtr<Widget> m_owner;
Vector<Entry> m_entries;