mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 798014 - Remove dead DefineConstructor definition; r=khuey
This commit is contained in:
parent
8483d25b62
commit
81b6ab3a65
@ -48,17 +48,6 @@ struct SetListBaseInformation
|
||||
SetListBaseInformation gSetListBaseInformation;
|
||||
|
||||
|
||||
bool
|
||||
DefineConstructor(JSContext* cx, JSObject* obj, DefineInterface aDefine, nsresult* aResult)
|
||||
{
|
||||
bool enabled;
|
||||
bool defined = aDefine(cx, obj, &enabled);
|
||||
MOZ_ASSERT(!defined || enabled,
|
||||
"We defined a constructor but the new bindings are disabled?");
|
||||
*aResult = defined ? NS_OK : NS_ERROR_FAILURE;
|
||||
return enabled;
|
||||
}
|
||||
|
||||
// static
|
||||
JSObject*
|
||||
DOMProxyHandler::EnsureExpandoObject(JSContext* cx, JSObject* obj)
|
||||
|
Loading…
Reference in New Issue
Block a user