Skip to content

Commit

Permalink
remove now-redundant YP_TOKEN_NOT_PROVIDED_VALUE
Browse files Browse the repository at this point in the history
  • Loading branch information
froydnj committed Sep 7, 2023
1 parent bcad93e commit 8f9a3c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/yarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ not_provided(yp_parser_t *parser) {
#define YP_LOCATION_NODE_BASE_VALUE(node) ((yp_location_t) { .start = (node)->base.location.start, .end = (node)->base.location.end })
#define YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE ((yp_location_t) { .start = NULL, .end = NULL })
#define YP_OPTIONAL_LOCATION_TOKEN_VALUE(token) ((token)->type == YP_TOKEN_NOT_PROVIDED ? YP_OPTIONAL_LOCATION_NOT_PROVIDED_VALUE : YP_LOCATION_TOKEN_VALUE(token))
#define YP_TOKEN_NOT_PROVIDED_VALUE(parser) ((yp_token_t) { .type = YP_TOKEN_NOT_PROVIDED, .start = (parser)->start, .end = (parser)->start })

// This is a special out parameter to the parse_arguments_list function that
// includes opening and closing parentheses in addition to the arguments since
Expand Down Expand Up @@ -4554,7 +4553,6 @@ yp_yield_node_create(yp_parser_t *parser, const yp_token_t *keyword, const yp_lo


#undef YP_EMPTY_STRING
#undef YP_TOKEN_NOT_PROVIDED_VALUE
#undef YP_ALLOC_NODE

/******************************************************************************/
Expand Down

0 comments on commit 8f9a3c2

Please sign in to comment.