mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Remove dead code pointed out by njaguar@gmail.com.
This commit is contained in:
parent
919c87d304
commit
a5b1cbc47e
@ -2324,7 +2324,6 @@ int
|
|||||||
main(int argc, char **argv, char **envp)
|
main(int argc, char **argv, char **envp)
|
||||||
{
|
{
|
||||||
int stackDummy;
|
int stackDummy;
|
||||||
JSVersion version;
|
|
||||||
JSRuntime *rt;
|
JSRuntime *rt;
|
||||||
JSContext *cx;
|
JSContext *cx;
|
||||||
JSObject *glob, *it, *envobj;
|
JSObject *glob, *it, *envobj;
|
||||||
@ -2387,8 +2386,6 @@ main(int argc, char **argv, char **envp)
|
|||||||
gOutFile = gTestResultFile;
|
gOutFile = gTestResultFile;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
version = JSVERSION_DEFAULT;
|
|
||||||
|
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
|
|
||||||
@ -2413,10 +2410,6 @@ main(int argc, char **argv, char **envp)
|
|||||||
if (!JS_DefineFunctions(cx, glob, shell_functions))
|
if (!JS_DefineFunctions(cx, glob, shell_functions))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Set version only after there is a global object. */
|
|
||||||
if (version != JSVERSION_DEFAULT)
|
|
||||||
JS_SetVersion(cx, version);
|
|
||||||
|
|
||||||
it = JS_DefineObject(cx, glob, "it", &its_class, NULL, 0);
|
it = JS_DefineObject(cx, glob, "it", &its_class, NULL, 0);
|
||||||
if (!it)
|
if (!it)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user