mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 796320 (part 2) - Remove dead AutoSetGeneratingError. r=luke.
--HG-- extra : rebase_source : 71d471a4c98b74a166f6b94996bcb68cdb8424ea
This commit is contained in:
parent
16162f0e93
commit
a0352fce84
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user