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
4557910898
commit
8e7cf8d620
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user