diff --git a/js/xpconnect/src/XPCQuickStubs.cpp b/js/xpconnect/src/XPCQuickStubs.cpp index da7bffb1314..eb1ad532b60 100644 --- a/js/xpconnect/src/XPCQuickStubs.cpp +++ b/js/xpconnect/src/XPCQuickStubs.cpp @@ -387,17 +387,6 @@ xpc_qsThrowBadSetterValue(JSContext *cx, nsresult rv, JSObject *obj, xpc_qsThrowBadSetterValue(cx, rv, obj, xpc_qsStringTable + name_index); } -bool -xpc_qsGetterOnlyPropertyStub(JSContext *cx, HandleObject obj, HandleId id, bool strict, - MutableHandleValue vp) -{ - return JS_ReportErrorFlagsAndNumber(cx, - JSREPORT_WARNING | JSREPORT_STRICT | - JSREPORT_STRICT_MODE_ERROR, - js_GetErrorMessage, nullptr, - JSMSG_GETTER_ONLY); -} - bool xpc_qsGetterOnlyNativeStub(JSContext *cx, unsigned argc, jsval *vp) { diff --git a/js/xpconnect/src/XPCQuickStubs.h b/js/xpconnect/src/XPCQuickStubs.h index 0a3ee9096c2..a67d461ed9e 100644 --- a/js/xpconnect/src/XPCQuickStubs.h +++ b/js/xpconnect/src/XPCQuickStubs.h @@ -124,10 +124,6 @@ xpc_qsThrowBadSetterValue(JSContext *cx, nsresult rv, JSObject *obj, uint16_t name_index); -bool -xpc_qsGetterOnlyPropertyStub(JSContext *cx, JS::HandleObject obj, JS::HandleId id, - bool strict, JS::MutableHandleValue vp); - bool xpc_qsGetterOnlyNativeStub(JSContext *cx, unsigned argc, jsval *vp);