Bug 796320 (part 2) - Remove dead AutoSetGeneratingError. r=luke.

--HG--
extra : rebase_source : 71d471a4c98b74a166f6b94996bcb68cdb8424ea
This commit is contained in:
Nicholas Nethercote 2012-10-02 19:13:20 -07:00
parent 16162f0e93
commit a0352fce84

View File

@ -909,24 +909,6 @@ static struct exnname { char *name; char *exception; } errortoexnname[] = {
}; };
#endif /* DEBUG */ #endif /* DEBUG */
struct AutoSetGeneratingError
{
JSContext *cx;
AutoSetGeneratingError(JSContext *cx)
: cx(cx)
{
JS_ASSERT(!cx->generatingError);
cx->generatingError = true;
}
~AutoSetGeneratingError()
{
JS_ASSERT(cx->generatingError);
cx->generatingError = false;
}
};
JSBool JSBool
js_ErrorToException(JSContext *cx, const char *message, JSErrorReport *reportp, js_ErrorToException(JSContext *cx, const char *message, JSErrorReport *reportp,
JSErrorCallback callback, void *userRef) JSErrorCallback callback, void *userRef)