Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove superfluous calls to BoxConstraint::debug_check #610

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion masonry/src/widget/flex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@ impl Widget for Flex {
}

fn layout(&mut self, ctx: &mut LayoutCtx, bc: &BoxConstraints) -> Size {
bc.debug_check("Flex");
// we loosen our constraints when passing to children.
let loosened_bc = bc.loosen();

Expand Down
1 change: 0 additions & 1 deletion masonry/src/widget/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ impl Widget for Grid {
}

fn layout(&mut self, ctx: &mut LayoutCtx, bc: &BoxConstraints) -> Size {
bc.debug_check("Grid");
let total_size = bc.max();
let width_unit = (total_size.width + self.grid_spacing) / (self.grid_width as f64);
let height_unit = (total_size.height + self.grid_spacing) / (self.grid_height as f64);
Expand Down