From fb4ae952a6d75ae74a84fc2599f58c3c5398af8b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 7 Feb 2015 16:23:59 -0600 Subject: Remove xexec_optargs(). --- lib/xwrap.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/xwrap.c') diff --git a/lib/xwrap.c b/lib/xwrap.c index bfe1c8e1..cd3c6845 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -129,17 +129,6 @@ void xflush(void) if (fflush(stdout) || ferror(stdout)) perror_exit("write");; } -// Call xexec with a chunk of optargs, starting at skip. (You can't just -// call xexec() directly because toy_init() frees optargs.) -void xexec_optargs(int skip) -{ - char **s = toys.optargs; - - toys.optargs = 0; - xexec(s+skip); -} - - // Die unless we can exec argv[] (or run builtin command). Note that anything // with a path isn't a builtin, so /bin/sh won't match the builtin sh. void xexec(char **argv) -- cgit v1.2.3