diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-31 21:54:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-31 21:54:14 +0200 |
commit | ba62ad36edf69ede39194e7e970a3edc1cbe9b47 (patch) | |
tree | 5e5d45deba78d9fd82420b7c04d60b2325a9f2f7 | |
parent | efdaab840d12c04458291a7618d74347a5a7c084 (diff) | |
download | egawk-ba62ad36edf69ede39194e7e970a3edc1cbe9b47.tar.gz egawk-ba62ad36edf69ede39194e7e970a3edc1cbe9b47.tar.bz2 egawk-ba62ad36edf69ede39194e7e970a3edc1cbe9b47.zip |
Remove unused function in dfa.c.
-rw-r--r-- | support/ChangeLog | 4 | ||||
-rw-r--r-- | support/dfa.c | 21 |
2 files changed, 4 insertions, 21 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 09369826..927cd019 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,7 @@ +2018-10-31 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c (charclass_context): Remove unused function. + 2018-10-22 Arnold D. Robbins <arnold@skeeve.com> * dfa.c: Update from GNULIB. diff --git a/support/dfa.c b/support/dfa.c index 71c350e2..0f0a661e 100644 --- a/support/dfa.c +++ b/support/dfa.c @@ -2345,27 +2345,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 |