style: Remove UnsafeNode.

No longer needed since a while ago.
This commit is contained in:
Emilio Cobos Álvarez 2017-09-25 01:58:25 +02:00
parent 3db1776326
commit e3c58df155
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 3 additions and 43 deletions

View file

@ -17,21 +17,13 @@ use servo_config::opts;
use smallvec::SmallVec;
use std::mem;
use std::sync::atomic::{AtomicIsize, Ordering};
use style::dom::UnsafeNode;
use traversal::{AssignBSizes, AssignISizes, BubbleISizes};
use traversal::{PostorderFlowTraversal, PreorderFlowTraversal};
/// Traversal chunk size.
const CHUNK_SIZE: usize = 16;
pub type FlowList = SmallVec<[UnsafeNode; CHUNK_SIZE]>;
#[allow(dead_code)]
fn static_assertion(node: UnsafeNode) {
unsafe {
let _: UnsafeFlow = ::std::intrinsics::transmute(node);
}
}
pub type FlowList = SmallVec<[UnsafeFlow; CHUNK_SIZE]>;
/// Vtable + pointer representation of a Flow trait object.
pub type UnsafeFlow = (usize, usize);