Skip to content

Commit

Permalink
Merge pull request atheme#37 from staticfox/func
Browse files Browse the repository at this point in the history
program_opts: Remove unused function
  • Loading branch information
kaniini committed Apr 6, 2016
2 parents 12c57bf + d05d850 commit 186ea51
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/libmowgli/ext/program_opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,6 @@ mowgli_program_opts_consumer_bool(const char *arg, void *userdata)
*(bool *) userdata = true;
}

static inline mowgli_program_opts_t *
mowgli_program_opts_lookup_name(mowgli_program_opts_t *opts, size_t opts_size, const char *name)
{
size_t i;

if (strlen(name) > 1)
for (i = 0; i < opts_size; i++)
if (!strcasecmp(name, opts[i].longopt))
return &opts[i];

else
for (i = 0; i < opts_size; i++)
if (*name == opts[i].smallopt)
return &opts[i];

return NULL;
}

static inline mowgli_getopt_option_t *
mowgli_program_opts_convert(const mowgli_program_opts_t *opts, size_t opts_size)
{
Expand Down

0 comments on commit 186ea51

Please sign in to comment.