From 86c61c190950e4dfca911d4aee7b3edf3baf4475 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 3 Jan 2015 16:37:43 +0100 Subject: [PATCH] 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. --- src/main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main.c b/src/main.c index 9ade54dd0..0c44cf3cd 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */