diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:13:56 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:40:38 +0100 |
commit | d0627a2592c0fdddbaa78b45ead0c7842dcc8f2e (patch) | |
tree | 3c5401e276c96e1b719bb334dfe6b95cef6d3e60 /components/script/dom/bindings/utils.rs | |
parent | 69c4c8223c90ed6122c0e85e3947841f665ededd (diff) | |
download | servo-d0627a2592c0fdddbaa78b45ead0c7842dcc8f2e.tar.gz servo-d0627a2592c0fdddbaa78b45ead0c7842dcc8f2e.zip |
Remove unused IsConvertibleToCallbackInterface.
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 8a3012eae9f..960926fdd41 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -24,7 +24,7 @@ use js::glue::{IsWrapper, RUST_JSID_IS_INT, RUST_JSID_TO_INT}; use js::jsapi::{JS_AlreadyHasOwnProperty, JS_NewFunction}; use js::jsapi::{JS_DefineProperties, JS_ForwardGetPropertyTo}; use js::jsapi::{JS_GetClass, JS_LinkConstructorAndPrototype, JS_GetStringCharsAndLength}; -use js::jsapi::{JS_ObjectIsRegExp, JS_ObjectIsDate, JSHandleObject}; +use js::jsapi::JSHandleObject; use js::jsapi::JS_GetFunctionObject; use js::jsapi::{JS_HasPropertyById, JS_GetPrototype}; use js::jsapi::{JS_GetProperty, JS_HasProperty}; @@ -559,13 +559,6 @@ pub fn has_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject, return !get_property_on_prototype(cx, proxy, id, &mut found, ptr::null_mut()) || found; } -/// Returns whether `obj` can be converted to a callback interface per IDL. -pub fn IsConvertibleToCallbackInterface(cx: *mut JSContext, obj: *mut JSObject) -> bool { - unsafe { - JS_ObjectIsDate(cx, obj) == 0 && JS_ObjectIsRegExp(cx, obj) == 0 - } -} - /// Create a DOM global object with the given class. pub fn CreateDOMGlobal(cx: *mut JSContext, class: *const JSClass) -> *mut JSObject { unsafe { |