mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove JS::from_trusted_node_address.
This commit is contained in:
parent
12be33efc9
commit
eb5759774c
1 changed files with 0 additions and 11 deletions
|
@ -187,17 +187,6 @@ impl <T> Clone for LayoutJS<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl JS<Node> {
|
||||
/// Create a new JS-owned value wrapped from an address known to be a `Node` pointer.
|
||||
pub unsafe fn from_trusted_node_address(inner: TrustedNodeAddress) -> JS<Node> {
|
||||
let TrustedNodeAddress(addr) = inner;
|
||||
assert!(!addr.is_null());
|
||||
JS {
|
||||
ptr: NonZero::new(addr as *const Node)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl LayoutJS<Node> {
|
||||
/// Create a new JS-owned value wrapped from an address known to be a `Node` pointer.
|
||||
pub unsafe fn from_trusted_node_address(inner: TrustedNodeAddress) -> LayoutJS<Node> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue