summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-03-02 04:37:34 (GMT)
committerGitHub <noreply@github.com>2019-03-02 04:37:34 (GMT)
commit8589f14bbe55fb1ff5c765af5281100c38f0df63 (patch)
treee5adac1d87df9ab1a3ee5bd47d255d3606afb52d /Parser
parent4f1903061877776973c1bbfadd3d3f146920856e (diff)
downloadcpython-8589f14bbe55fb1ff5c765af5281100c38f0df63.zip
cpython-8589f14bbe55fb1ff5c765af5281100c38f0df63.tar.gz
cpython-8589f14bbe55fb1ff5c765af5281100c38f0df63.tar.bz2
Remove some code which has been dead since 1994 (#12136)
Diffstat (limited to 'Parser')
-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 *