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 4557910898
commit 8e7cf8d620

View File

@ -909,24 +909,6 @@ static struct exnname { char *name; char *exception; } errortoexnname[] = {
};
#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
js_ErrorToException(JSContext *cx, const char *message, JSErrorReport *reportp,
JSErrorCallback callback, void *userRef)