chore(grid): remove unused Item struct

This commit is contained in:
Michael Aaron Murphy 2023-10-12 13:15:09 +02:00 committed by Michael Murphy
parent 7ee1f545e1
commit 21cc4124f0
3 changed files with 3 additions and 21 deletions

View file

@ -7,9 +7,9 @@ use iced_core::layout::{Limits, Node};
use iced_core::{Alignment, Length, Padding, Point, Size};
use taffy::geometry::{Line, Rect};
use taffy::style::{AlignContent, AlignItems, Dimension, Display, GridPlacement, Style};
use taffy::style::{AlignItems, Dimension, Display, GridPlacement, Style};
use taffy::style_helpers::{auto, length};
use taffy::{LayoutTree, Taffy};
use taffy::Taffy;
#[allow(clippy::too_many_lines)]
pub fn resolve<Message>(

View file

@ -4,7 +4,7 @@
pub mod layout;
pub mod widget;
pub use widget::{Grid, Item};
pub use widget::Grid;
/// Responsively generates rows and columns of widgets based on its dimmensions.
pub const fn grid<'a, Message>() -> Grid<'a, Message> {

View file

@ -309,21 +309,3 @@ impl From<(u16, u16, u16, u16)> for Assignment {
}
}
}
#[must_use]
pub struct Item<'a, Message> {
widget: Element<'a, Message>,
assignment: Assignment,
}
impl<'a, Message> Item<'a, Message> {
pub fn width(mut self, width: u16) -> Self {
self.assignment.width = width;
self
}
pub fn height(mut self, height: u16) -> Self {
self.assignment.height = height;
self
}
}