summaryrefslogtreecommitdiff
path: root/yarp
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@gmail.com>2023-09-07 08:45:26 -0400
committergit <svn-admin@ruby-lang.org>2023-09-07 14:02:40 +0000
commit630e49010cd91e97ce49d315b00d4ece193ebe82 (patch)
tree33c0a3b3ae7216ef0d7b2c9d4e1c194c576676a6 /yarp
parent44b52c54164116b38462085916bffcda00a41a2a (diff)
[ruby/yarp] remove now-redundant `YP_TOKEN_NOT_PROVIDED_VALUE`
https://github.com/ruby/yarp/commit/8f9a3c2345
Diffstat (limited to 'yarp')
-rw-r--r--yarp/yarp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c
index 0ca5253a05..cb2bf18597 100644
--- a/yarp/yarp.c
+++ b/yarp/yarp.c
@@ -516,7 +516,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
@@ -4560,7 +4559,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
/******************************************************************************/