From: Brendan Hansen Date: Mon, 13 Dec 2021 03:47:43 +0000 (-0600) Subject: forgot to remove commented code X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=b2948e55bcba1f8da09bf12c6fd9bf819d398e17;p=onyx.git forgot to remove commented code --- diff --git a/src/parser.c b/src/parser.c index f4f8b1b6..c473394c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2956,15 +2956,6 @@ static void parse_top_level_statement(OnyxParser* parser) { include->token = dir_token; include->name_node = parse_expression(parser, 0); - /* nocheckin - OnyxToken* str_token = expect_token(parser, Token_Type_Literal_String); - if (str_token != NULL) { - token_toggle_end(str_token); - include->name = bh_strdup(parser->allocator, str_token->text); - token_toggle_end(str_token); - } - */ - ENTITY_SUBMIT(include); return; } @@ -2973,15 +2964,6 @@ static void parse_top_level_statement(OnyxParser* parser) { include->token = dir_token; include->name_node = parse_expression(parser, 0); - /* nocheckin - OnyxToken* str_token = expect_token(parser, Token_Type_Literal_String); - if (str_token != NULL) { - token_toggle_end(str_token); - include->name = bh_strdup(parser->allocator, str_token->text); - token_toggle_end(str_token); - } - */ - ENTITY_SUBMIT(include); return; } @@ -2990,15 +2972,6 @@ static void parse_top_level_statement(OnyxParser* parser) { include->token = dir_token; include->name_node = parse_expression(parser, 0); - /* nocheckin - OnyxToken* str_token = expect_token(parser, Token_Type_Literal_String); - if (str_token != NULL) { - token_toggle_end(str_token); - include->name = bh_strdup(parser->allocator, str_token->text); - token_toggle_end(str_token); - } - */ - ENTITY_SUBMIT(include); return; }