Remove support for non-castable arguments.

This commit is contained in:
Ms2ger 2014-03-20 23:17:46 +01:00
parent 7bfb15ec62
commit a4fc6961a8
3 changed files with 16 additions and 46 deletions

View file

@ -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)
}