From 51850c7ab6129ab36fed99e45bdd4e45660348c6 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 9 Dec 2014 15:50:18 -0800 Subject: [PATCH] Remove unused code in assign_block_size_block_base This code is unreachable because an earlier `if base(kid).flags.is_float()` check bails out of the loop before it can reach this block. --- components/layout/block.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/layout/block.rs b/components/layout/block.rs index a721244d826..6b141b1e749 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -908,12 +908,8 @@ impl BlockFlow { } // Lay the child out if this was an in-order traversal. - let need_to_process_child_floats = if flow::base(kid).flags.is_float() { - kid.place_float_if_applicable(layout_context); - true - } else { - kid.assign_block_size_for_inorder_child_if_necessary(layout_context) - }; + let need_to_process_child_floats = + kid.assign_block_size_for_inorder_child_if_necessary(layout_context); // Mark flows for layerization if necessary to handle painting order correctly. propagate_layer_flag_from_child(&mut layers_needed_for_descendants, kid);