From a86e5011ea9304be5a930c38b29ec05eef191d2b Mon Sep 17 00:00:00 2001 From: Norihiro Tanaka Date: Sat, 10 Nov 2018 10:29:47 +0900 Subject: [PATCH 3/3] dfa: removal of unused function * lib/dfa.c (charclass_context): Remove it. --- lib/dfa.c | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-) diff --git a/lib/dfa.c b/lib/dfa.c index a761a26..f5b9802 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -2319,27 +2319,6 @@ epsclosure (struct dfa const *d) free (tmp.elems); } -/* Returns the set of contexts for which there is at least one - character included in C. */ - -static int -charclass_context (struct dfa const *dfa, charclass const *c) -{ - int context = 0; - - for (unsigned int j = 0; j < CHARCLASS_WORDS; ++j) - { - if (c->w[j] & dfa->syntax.newline.w[j]) - context |= CTX_NEWLINE; - if (c->w[j] & dfa->syntax.letters.w[j]) - context |= CTX_LETTER; - if (c->w[j] & ~(dfa->syntax.letters.w[j] | dfa->syntax.newline.w[j])) - context |= CTX_NONE; - } - - return context; -} - /* Returns the contexts on which the position set S depends. Each context in the set of returned contexts (let's call it SC) may have a different follow set than other contexts in SC, and also different from the -- 1.7.1