mirror of
https://github.com/servo/servo.git
synced 2025-06-16 12:24:29 +00:00
Remove unused argument to CreateInterfaceObjects2.
This commit is contained in:
parent
478c9bfc57
commit
bec0dcd023
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue