LibGUI: Delete old now-unused Widget::load_from_gml()

This commit is contained in:
Sam Atkins 2023-01-07 12:34:14 +00:00 committed by Linus Groh
parent 54b1326165
commit e4e12f3a96
2 changed files with 0 additions and 14 deletions

View file

@ -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()))

View file

@ -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(); }