Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mx_getopt: Remove dead code
  • Loading branch information
donald committed Feb 21, 2022
1 parent 69f9f1c commit 2cbc3e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
18 changes: 0 additions & 18 deletions mx_getopt.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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('\'');
}
4 changes: 0 additions & 4 deletions mx_getopt.h
Expand Up @@ -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

0 comments on commit 2cbc3e8

Please sign in to comment.