mirror of https://github.com/python/cpython
Remove some code which has been dead since 1994 (#12136)
This commit is contained in:
parent
4f19030618
commit
8589f14bbe
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue