Remove push method for overlay::Group

This commit is contained in:
Héctor Ramón Jiménez 2025-04-26 02:55:42 +02:00
parent 6c51a9579d
commit 385cfcddb2
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -39,15 +39,6 @@ where
Group { children }
}
/// Adds an [`overlay::Element`] to the [`Group`].
pub fn push(
mut self,
child: impl Into<overlay::Element<'a, Message, Theme, Renderer>>,
) -> Self {
self.children.push(child.into());
self
}
/// Turns the [`Group`] into an overlay [`overlay::Element`].
pub fn overlay(self) -> overlay::Element<'a, Message, Theme, Renderer> {
overlay::Element::new(Box::new(self))