LibDeviceTree: Remove DeviceTreeNodeView::child()

This (confusingly named) function will probably never be used, since you
normally should know whether you are looking for a child or property.
This commit is contained in:
Sönke Holz 2024-11-01 22:41:06 +01:00
parent 4f6f65d1f9
commit fe6d785e91

View file

@ -102,7 +102,6 @@ class DeviceTreeNodeView {
public:
bool has_property(StringView prop) const { return m_properties.contains(prop); }
bool has_child(StringView child) const { return m_children.contains(child); }
bool child(StringView name) const { return has_property(name) || has_child(name); }
Optional<DeviceTreeProperty> get_property(StringView prop) const { return m_properties.get(prop).copy(); }