From 2cbc3e884dbc18ffdac16d45ba6f499b9123bd63 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 21 Feb 2022 10:15:35 +0100 Subject: [PATCH] mx_getopt: Remove dead code --- mx_getopt.c | 18 ------------------ mx_getopt.h | 4 ---- 2 files changed, 22 deletions(-) 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