mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Remove support for non-castable arguments.
This commit is contained in:
parent
7bfb15ec62
commit
a4fc6961a8
3 changed files with 16 additions and 46 deletions
|
@ -128,13 +128,6 @@ pub fn unwrap_jsmanaged<T: Reflectable>(obj: *JSObject,
|
|||
})
|
||||
}
|
||||
|
||||
pub fn unwrap_value<T>(val: *JSVal, proto_id: PrototypeList::id::ID, proto_depth: uint) -> Result<T, ()> {
|
||||
unsafe {
|
||||
let obj = (*val).to_object();
|
||||
unwrap_object(obj, proto_id, proto_depth)
|
||||
}
|
||||
}
|
||||
|
||||
pub unsafe fn squirrel_away_unique<T>(x: ~T) -> *T {
|
||||
cast::transmute(x)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue