diff --git a/mx_getopt.c b/mx_getopt.c index a92e3650..8d8ddcb1 100644 --- a/mx_getopt.c +++ b/mx_getopt.c @@ -396,11 +396,6 @@ static int _mx_getopt_long(struct mx_getopt_ctl *optctl, int *optindex) return handle_option(optctl, idx); } -int mx_getopt_long(struct mx_getopt_ctl *optctl, int *optindex) -{ - return _mx_getopt_long(optctl, optindex); -} - int mx_getopt(struct mx_getopt_ctl *optctl, int *optindex) { int opt; @@ -455,16 +450,3 @@ int mx_getopt(struct mx_getopt_ctl *optctl, int *optindex) return opt; } - -void mx_getopt_print_quoted(char *s) -{ - putchar('\''); - while (*s) { - if (*s == '\'') - printf("'\\''"); - else - putchar(*s); - s++; - } - putchar('\''); -} diff --git a/mx_getopt.h b/mx_getopt.h index fe9ef256..4fc09c92 100644 --- a/mx_getopt.h +++ b/mx_getopt.h @@ -179,9 +179,5 @@ struct mx_getopt_ctl { void mx_getopt_pop_current_argument(struct mx_getopt_ctl *optctl); int mx_getopt_init(struct mx_getopt_ctl *ctl, int argc, char **argv, struct mx_option *optv); -int mx_getopt_long(struct mx_getopt_ctl *optctl, int *optindex); int mx_getopt(struct mx_getopt_ctl *optctl, int *optindex); - -void mx_getopt_print_quoted(char *s); - #endif