Bug 798014 - Remove dead DefineConstructor definition; r=khuey

This commit is contained in:
Ms2ger 2012-10-14 09:39:05 +02:00
parent 8483d25b62
commit 81b6ab3a65

View File

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