Skip to content

Commit 8589f14

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

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy