src/main.c, nutmeg, cleanup `ft_loadfile()' invocation

drop non functional code which might originally have been meant
  to read a default `ft_rawfile' when no other file
  was given on the command line.

this would be disturbing behaviour anyway,
  since it would be impossible to start
  nutmeg interactively without any file.
This commit is contained in:
rlar 2015-01-03 16:37:43 +01:00
parent a820d11451
commit 86c61c1909
1 changed files with 2 additions and 12 deletions

View File

@ -1325,20 +1325,10 @@ main(int argc, char **argv)
} else {
bool gdata = TRUE;
if (optind == argc) /* No raw file */
gdata = FALSE;
cp_interactive = FALSE;
if (gdata) {
if (optind < argc)
while (optind < argc)
ft_loadfile(argv[optind++]);
else
ft_loadfile(ft_rawfile);
}
while (optind < argc)
ft_loadfile(argv[optind++]);
}
#endif /* ~ SIMULATOR */