Skip to content

Commit 94a1eea

Browse files
authored
gh-103277: remove unused macros (#105247)
1 parent e6373c0 commit 94a1eea

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Python/compile.c

-19
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737

3838
#include "opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
3939

40-
#define DEFAULT_CODE_SIZE 128
41-
#define DEFAULT_LNOTAB_SIZE 16
42-
#define DEFAULT_CNOTAB_SIZE 32
43-
4440
#define COMP_GENEXP 0
4541
#define COMP_LISTCOMP 1
4642
#define COMP_SETCOMP 2
@@ -65,21 +61,6 @@
6561
return ERROR; \
6662
}
6763

68-
/* If we exceed this limit, it should
69-
* be considered a compiler bug.
70-
* Currently it should be impossible
71-
* to exceed STACK_USE_GUIDELINE * 100,
72-
* as 100 is the maximum parse depth.
73-
* For performance reasons we will
74-
* want to reduce this to a
75-
* few hundred in the future.
76-
*
77-
* NOTE: Whatever MAX_ALLOWED_STACK_USE is
78-
* set to, it should never restrict what Python
79-
* we can write, just how we compile it.
80-
*/
81-
#define MAX_ALLOWED_STACK_USE (STACK_USE_GUIDELINE * 100)
82-
8364
#define IS_TOP_LEVEL_AWAIT(C) ( \
8465
((C)->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT) \
8566
&& ((C)->u->u_ste->ste_type == ModuleBlock))

0 commit comments

Comments
 (0)