diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-30 09:44:25 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-30 09:44:25 -0700 |
commit | b5a23a16be861a837f7079244ca901fd0d0bef04 (patch) | |
tree | f8aa409709fa85412bf330edb9cac22d74a63cf6 /components/layout | |
parent | d3f55fbf60c72329a2c820bbc7ed1440e9966481 (diff) | |
parent | 4691dc0c6ed8b43f88b8406116d3a0698003dbf8 (diff) | |
download | servo-b5a23a16be861a837f7079244ca901fd0d0bef04.tar.gz servo-b5a23a16be861a837f7079244ca901fd0d0bef04.zip |
Auto merge of #10941 - samlh:patch-2, r=mbrubeck
Remove dead code left over from #10085
cc @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10941)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/block.rs | 2 | ||||
-rw-r--r-- | components/layout/flow.rs | 11 |
2 files changed, 0 insertions, 13 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 0b10ef39000..96cf52ec251 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1518,8 +1518,6 @@ impl BlockFlow { } } } - - flags.union_floated_descendants_flags(child_base.flags); } // FIXME(pcwalton): This should consider all float descendants, not just children. diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 79ab2fc2c07..3b4bd29a66b 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -676,12 +676,6 @@ bitflags! { } } -// NB: If you update this field, you must update the the floated descendants flags. -/// The bitmask of flags that represent the `has_left_floated_descendants` and -/// `has_right_floated_descendants` fields. - -static HAS_FLOATED_DESCENDANTS_BITMASK: FlowFlags = FlowFlags { bits: 0b0000_0011 }; - /// The number of bits we must shift off to handle the text alignment field. /// /// NB: If you update this, update `TEXT_ALIGN` above. @@ -700,11 +694,6 @@ impl FlowFlags { } #[inline] - pub fn union_floated_descendants_flags(&mut self, other: FlowFlags) { - self.insert(other & HAS_FLOATED_DESCENDANTS_BITMASK); - } - - #[inline] pub fn float_kind(&self) -> float::T { if self.contains(FLOATS_LEFT) { float::T::left |