Remove unused argument to CreateInterfaceObjects2.

This commit is contained in:
Ms2ger 2014-03-03 16:00:49 +01:00
parent 478c9bfc57
commit bec0dcd023
2 changed files with 4 additions and 4 deletions

View file

@ -2792,7 +2792,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
return "ptr::to_unsafe_ptr(&%s[0])" % val
call = """return CreateInterfaceObjects2(aCx, aGlobal, aReceiver, parentProto,
%s, ptr::null(), %s, %d,
%s, %s, %d,
%s,
%s,
%s,

View file

@ -362,7 +362,7 @@ pub fn GetProtoOrIfaceArray(global: *JSObject) -> **JSObject {
pub fn CreateInterfaceObjects2(cx: *JSContext, global: *JSObject, receiver: *JSObject,
protoProto: *JSObject, protoClass: *JSClass,
constructorClass: *JSClass, constructor: Option<JSNative>,
constructor: Option<JSNative>,
ctorNargs: u32,
domClass: *DOMClass,
methods: *JSFunctionSpec,
@ -386,9 +386,9 @@ pub fn CreateInterfaceObjects2(cx: *JSContext, global: *JSObject, receiver: *JSO
}
let mut interface = ptr::null();
if constructorClass.is_not_null() || constructor.is_some() {
if constructor.is_some() {
interface = name.to_c_str().with_ref(|s| {
CreateInterfaceObject(cx, global, receiver, constructorClass,
CreateInterfaceObject(cx, global, receiver, ptr::null(),
constructor, ctorNargs, proto,
staticMethods, constants, s)
});