Skip to content

Commit 1f075e5

Browse files
author
Petr Machata
committed
Drop unnecessary value_extract_word from lens_enum callback
1 parent c442f69 commit 1f075e5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lens_enum.c

-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ enum_lens_format_cb(struct lens *lens, FILE *stream,
123123
{
124124
struct enum_lens *self = (void *)lens;
125125

126-
long l;
127-
if (value_extract_word(value, &l, arguments) < 0)
128-
return -1;
129-
130126
const char *name = enum_get(self, value, arguments);
131127
if (name != NULL)
132128
return fprintf(stream, "%s", name);

0 commit comments

Comments
 (0)