mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
box: Remove useless if statement
We already check right before this one whether child->pack != packing and if so, we continue to the next iteration. So, no need to check again whether the inverted condition child->pack == packing is true, because it is.
This commit is contained in:
parent
12be5ccbb7
commit
8ab2c79b77
@ -1142,8 +1142,6 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (child->pack == packing)
|
||||
{
|
||||
/* Assign the child's size. */
|
||||
if (private->homogeneous)
|
||||
{
|
||||
@ -1195,7 +1193,6 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
|
||||
computed_minimum = MAX (computed_minimum, child_minimum);
|
||||
computed_natural = MAX (computed_natural, child_natural);
|
||||
}
|
||||
}
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user