From 8589f14bbe55fb1ff5c765af5281100c38f0df63 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 1 Mar 2019 23:37:34 -0500 Subject: [PATCH] Remove some code which has been dead since 1994 (#12136) --- Parser/grammar1.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Parser/grammar1.c b/Parser/grammar1.c index 9e9904158da..9c323911ab2 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 *