summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Parser/grammar1.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c
index 9e99041..9c32391 100644
--- a/Parser/grammar1.c
+++ b/Parser/grammar1.c
@@ -12,21 +12,10 @@ dfa *
PyGrammar_FindDFA(grammar *g, int type)
{
dfa *d;
-#if 1
/* Massive speed-up */
d = &g->g_dfa[type - NT_OFFSET];
assert(d->d_type == type);
return d;
-#else
- /* Old, slow version */
- int i;
-
- for (i = g->g_ndfas, d = g->g_dfa; --i >= 0; d++) {
- if (d->d_type == type)
- return d;
- }
- Py_UNREACHABLE();
-#endif
}
const char *