mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
LibGUI: Delete old now-unused Widget::load_from_gml()
This commit is contained in:
parent
54b1326165
commit
e4e12f3a96
2 changed files with 0 additions and 14 deletions
|
@ -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()))
|
||||
|
|
|
@ -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(); }
|
||||
|
|
Loading…
Reference in a new issue