From 81b6ab3a65b0141b3dae524f830d5b14165f9a89 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 14 Oct 2012 09:39:05 +0200 Subject: [PATCH] Bug 798014 - Remove dead DefineConstructor definition; r=khuey --- dom/bindings/DOMJSProxyHandler.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dom/bindings/DOMJSProxyHandler.cpp b/dom/bindings/DOMJSProxyHandler.cpp index af45cc6ed1a..caba99788fc 100644 --- a/dom/bindings/DOMJSProxyHandler.cpp +++ b/dom/bindings/DOMJSProxyHandler.cpp @@ -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)