summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibGUI/Widget.cpp10
-rw-r--r--Userland/Libraries/LibGUI/Widget.h4
2 files changed, 0 insertions, 14 deletions
diff --git a/Userland/Libraries/LibGUI/Widget.cpp b/Userland/Libraries/LibGUI/Widget.cpp
index 3d4f2684cf..75e0903f9a 100644
--- a/Userland/Libraries/LibGUI/Widget.cpp
+++ b/Userland/Libraries/LibGUI/Widget.cpp
@@ -1159,16 +1159,6 @@ ErrorOr<void> Widget::try_load_from_gml(StringView gml_string, UnregisteredChild
return load_from_gml_ast(value, unregistered_child_handler);
}
-bool Widget::load_from_gml(StringView gml_string)
-{
- return !try_load_from_gml(gml_string).is_error();
-}
-
-bool Widget::load_from_gml(StringView gml_string, UnregisteredChildHandler unregistered_child_handler)
-{
- return !try_load_from_gml(gml_string, unregistered_child_handler).is_error();
-}
-
ErrorOr<void> Widget::load_from_gml_ast(NonnullRefPtr<GUI::GML::Node> ast, UnregisteredChildHandler unregistered_child_handler)
{
if (is<GUI::GML::GMLFile>(ast.ptr()))
diff --git a/Userland/Libraries/LibGUI/Widget.h b/Userland/Libraries/LibGUI/Widget.h
index 20c8985e8a..f90c3771a7 100644
--- a/Userland/Libraries/LibGUI/Widget.h
+++ b/Userland/Libraries/LibGUI/Widget.h
@@ -357,10 +357,6 @@ public:
ErrorOr<void> try_load_from_gml(StringView);
ErrorOr<void> try_load_from_gml(StringView, UnregisteredChildHandler);
- // FIXME: Replace all uses of load_from_gml() with try_load_from_gml()
- bool load_from_gml(StringView gml_string);
- bool load_from_gml(StringView, UnregisteredChildHandler);
-
// FIXME: remove this when all uses of shrink_to_fit are eliminated
void set_shrink_to_fit(bool);
bool is_shrink_to_fit() const { return preferred_width().is_shrink() || preferred_height().is_shrink(); }