mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Remove dead code from layout.
This commit is contained in:
parent
de23fef9ca
commit
5ec1cdea9b
11 changed files with 4 additions and 116 deletions
|
@ -44,12 +44,6 @@ fn null_unsafe_flow() -> UnsafeFlow {
|
|||
(0, 0)
|
||||
}
|
||||
|
||||
pub fn owned_flow_to_unsafe_flow(flow: *const FlowRef) -> UnsafeFlow {
|
||||
unsafe {
|
||||
mem::transmute::<&Flow, UnsafeFlow>(&**flow)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn mut_owned_flow_to_unsafe_flow(flow: *mut FlowRef) -> UnsafeFlow {
|
||||
unsafe {
|
||||
mem::transmute::<&Flow, UnsafeFlow>(&**flow)
|
||||
|
@ -62,12 +56,6 @@ pub fn borrowed_flow_to_unsafe_flow(flow: &Flow) -> UnsafeFlow {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn mut_borrowed_flow_to_unsafe_flow(flow: &mut Flow) -> UnsafeFlow {
|
||||
unsafe {
|
||||
mem::transmute::<&Flow, UnsafeFlow>(flow)
|
||||
}
|
||||
}
|
||||
|
||||
/// Information that we need stored in each DOM node.
|
||||
pub struct DomParallelInfo {
|
||||
/// The number of children that still need work done.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue