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:
Eli Friedman 2015-09-26 00:23:03 -07:00
parent d39c8546b6
commit f0da2a3701
2 changed files with 0 additions and 35 deletions

View file

@ -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> {