diff options
author | Lukas Larsson <[email protected]> | 2017-07-04 08:35:25 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-07-04 08:35:25 +0200 |
commit | f07821b47f8dcf69be22277e316167491a2ef295 (patch) | |
tree | 1d1666b2fd93d21dacda5e5cc1ae5d8b098e6ed8 /erts | |
parent | c5a6e3d99144c94ef557da5787c76f12737044d9 (diff) | |
parent | 4d484afced06366cbeac0cfb15ad8bb14ee46fba (diff) | |
download | otp-f07821b47f8dcf69be22277e316167491a2ef295.tar.gz otp-f07821b47f8dcf69be22277e316167491a2ef295.tar.bz2 otp-f07821b47f8dcf69be22277e316167491a2ef295.zip |
Merge branch 'mikpe/erts/escript-dead-code' into maint
* mikpe/erts/escript-dead-code:
escript.c: remove dead code
Diffstat (limited to 'erts')
-rw-r--r-- | erts/etc/common/escript.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/erts/etc/common/escript.c b/erts/etc/common/escript.c index 7f0af77a4c..9cd5dd3fab 100644 --- a/erts/etc/common/escript.c +++ b/erts/etc/common/escript.c @@ -74,7 +74,6 @@ static void error(char* format, ...); static void* emalloc(size_t size); static void efree(void *p); static char* strsave(char* string); -static void push_words(char* src); static int run_erlang(char* name, char** argv); static char* get_default_emulator(char* progname); #ifdef __WIN32__ @@ -583,26 +582,6 @@ main(int argc, char** argv) return run_erlang(eargv[0], eargv); } -static void -push_words(char* src) -{ - char sbuf[PMAX]; - char* dst; - - dst = sbuf; - while ((*dst++ = *src++) != '\0') { - if (isspace((int)*src)) { - *dst = '\0'; - PUSH(strsave(sbuf)); - dst = sbuf; - do { - src++; - } while (isspace((int)*src)); - } - } - if (sbuf[0]) - PUSH(strsave(sbuf)); -} #ifdef __WIN32__ wchar_t *make_commandline(char **argv) { |