Remove some code which has been dead since 1994 (#12136)

This commit is contained in:
Alex Gaynor 2019-03-01 23:37:34 -05:00 committed by GitHub
parent 4f19030618
commit 8589f14bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -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 *