Commit 1f075e5b authored by Petr Machata's avatar Petr Machata

Drop unnecessary value_extract_word from lens_enum callback

parent c442f697
......@@ -123,10 +123,6 @@ enum_lens_format_cb(struct lens *lens, FILE *stream,
struct enum_lens *self = (void *)lens;
long l;
if (value_extract_word(value, &l, arguments) < 0)
return -1;
const char *name = enum_get(self, value, arguments);
if (name != NULL)
return fprintf(stream, "%s", name);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment