Skip to content

Commit 3ecd50e

Browse files
committed
Revert "argconfig: add argconfig_get_value()"
This reverts commit cccefc4. Causes regression in nightly CI runs. The problem couldn't be figured out thus revert it. Signed-off-by: Daniel Wagner <[email protected]>
1 parent e62ab3c commit 3ecd50e

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

util/argconfig.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -429,16 +429,3 @@ bool argconfig_parse_seen(struct argconfig_commandline_options *s,
429429

430430
return false;
431431
}
432-
433-
void *argconfig_get_value(struct argconfig_commandline_options *s, const char *option)
434-
{
435-
for (; s && s->option; s++) {
436-
if (!strcmp(s->option, option)) {
437-
if (s->seen)
438-
return s->default_value;
439-
break;
440-
}
441-
}
442-
443-
return NULL;
444-
}

util/argconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,4 @@ int argconfig_parse_comma_sep_array_u64(char *string, __u64 *val,
190190
void print_word_wrapped(const char *s, int indent, int start, FILE *stream);
191191
bool argconfig_parse_seen(struct argconfig_commandline_options *options,
192192
const char *option);
193-
void *argconfig_get_value(struct argconfig_commandline_options *s, const char *option);
194193
#endif

0 commit comments

Comments
 (0)