From 5cf146399f5961513c2ee1697368e4c5a1c492ce Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Sat, 22 Feb 2025 16:19:37 +0900 Subject: [PATCH] Merge NODE_LINE and NODE_ENCODING cases in cond0 function NODE_LINE and NODE_ENCODING cases are used SWITCH_BY_COND_TYPE macro that is same to NODE_INTEGER and other cases. NODE_LINE and NODE_ENCODING cases can be marge to NODE_INTEGER and other node cases. --- parse.y | 6 ------ 1 file changed, 6 deletions(-) diff --git a/parse.y b/parse.y index e15f59e146..47fdffc6d5 100644 --- a/parse.y +++ b/parse.y @@ -14228,13 +14228,7 @@ cond0(struct parser_params *p, NODE *node, enum cond_type type, const YYLTYPE *l break; case NODE_LINE: - SWITCH_BY_COND_TYPE(type, warning, ""); - break; - case NODE_ENCODING: - SWITCH_BY_COND_TYPE(type, warning, ""); - break; - case NODE_INTEGER: case NODE_FLOAT: case NODE_RATIONAL: