mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove UnsafeNode.
No longer needed since a while ago.
This commit is contained in:
parent
3db1776326
commit
e3c58df155
5 changed files with 3 additions and 43 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue