mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Delete dead code.
(#[cfg(debug)] is false in every normal servo configuration, and the code in question doesn't compile.)
This commit is contained in:
parent
d39c8546b6
commit
f0da2a3701
2 changed files with 0 additions and 35 deletions
|
@ -292,23 +292,6 @@ impl<'a> PostorderDomTraversal for ConstructFlows<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// The flow tree verification traversal. This is only on in debug builds.
|
||||
#[cfg(debug)]
|
||||
struct FlowTreeVerification;
|
||||
|
||||
#[cfg(debug)]
|
||||
impl PreorderFlow for FlowTreeVerification {
|
||||
#[inline]
|
||||
fn process(&mut self, flow: &mut Flow) {
|
||||
let base = flow::base(flow);
|
||||
if !base.flags.is_leaf() && !base.flags.is_nonleaf() {
|
||||
println!("flow tree verification failed: flow wasn't a leaf or a nonleaf!");
|
||||
flow.dump();
|
||||
panic!("flow tree verification failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The bubble-inline-sizes traversal, the first part of layout computation. This computes
|
||||
/// preferred and intrinsic inline-sizes and bubbles them up the tree.
|
||||
pub struct BubbleISizes<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue