Skip to content

Commit 8589f14

Browse files
authored
Remove some code which has been dead since 1994 (#12136)
1 parent 4f19030 commit 8589f14

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Parser/grammar1.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,10 @@ dfa *
1212
PyGrammar_FindDFA(grammar *g, int type)
1313
{
1414
dfa *d;
15-
#if 1
1615
/* Massive speed-up */
1716
d = &g->g_dfa[type - NT_OFFSET];
1817
assert(d->d_type == type);
1918
return d;
20-
#else
21-
/* Old, slow version */
22-
int i;
23-
24-
for (i = g->g_ndfas, d = g->g_dfa; --i >= 0; d++) {
25-
if (d->d_type == type)
26-
return d;
27-
}
28-
Py_UNREACHABLE();
29-
#endif
3019
}
3120

3221
const char *

0 commit comments

Comments
 (0)