Remove dead code pointed out by njaguar@gmail.com.

This commit is contained in:
brendan%mozilla.org 2005-03-20 05:00:15 +00:00
parent 919c87d304
commit a5b1cbc47e

View File

@ -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;