From b2e8d7d20105493ce5f866825bb2f804d7b66df1 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 16 Jun 2017 15:20:24 +0900 Subject: [PATCH] remove unused codes --- src/regcomp.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/regcomp.c b/src/regcomp.c index b53c32c..8070804 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -3150,8 +3150,6 @@ divide_look_behind_alternatives(Node* node) AnchorNode* an = ANCHOR_(node); int anc_type = an->type; - /* fprintf(stderr, "divide_look_behind: %d\n", (int )node); */ - head = NODE_ANCHOR_BODY(an); np = NODE_CAR(head); swap_node(node, head); @@ -3181,8 +3179,6 @@ setup_look_behind(Node* node, regex_t* reg, ScanEnv* env) int r, len; AnchorNode* an = ANCHOR_(node); - /* fprintf(stderr, "setup_look_behind: %x\n", (int )node); */ - r = get_char_length_tree(NODE_ANCHOR_BODY(an), reg, &len); if (r == 0) an->char_len = len; @@ -3870,17 +3866,6 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env) } } } -#endif -#if 0 - r = get_max_len(target, &d, env); - if (r == 0 && d == 0) { - /* ()* ==> ()?, ()+ ==> () */ - qn->upper = 1; - if (qn->lower > 1) qn->lower = 1; - if (NODE_TYPE(target) == NODE_STR) { - qn->upper = qn->lower = 0; /* /(?:)+/ ==> // */ - } - } #endif } } -- 2.40.0