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:
Timm Bäder 2018-01-17 12:54:42 +01:00
parent 12be5ccbb7
commit 8ab2c79b77

View File

@ -1142,8 +1142,6 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
continue; continue;
} }
if (child->pack == packing)
{
/* Assign the child's size. */ /* Assign the child's size. */
if (private->homogeneous) if (private->homogeneous)
{ {
@ -1195,7 +1193,6 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
computed_minimum = MAX (computed_minimum, child_minimum); computed_minimum = MAX (computed_minimum, child_minimum);
computed_natural = MAX (computed_natural, child_natural); computed_natural = MAX (computed_natural, child_natural);
} }
}
i += 1; i += 1;
} }
} }