summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-23 03:01:56 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-23 03:01:56 +0000
commit94819cf47ce2c626cd32bda2a292ec6e50a1cd07 (patch)
tree50e4805b9b0b8bcd239a96a03ab277b1c3eb77a4
parent1a4ceb2f4b5d2423681a2e015d72130a338c902b (diff)
downloadcpython-git-94819cf47ce2c626cd32bda2a292ec6e50a1cd07.tar.gz
remove some unused symtable constants
-rw-r--r--Include/symtable.h10
-rw-r--r--Modules/symtablemodule.c4
2 files changed, 3 insertions, 11 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index 29cd846cd5..a5f7652f9f 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -63,13 +63,9 @@ PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
#define DEF_LOCAL 2 /* assignment in code block */
#define DEF_PARAM 2<<1 /* formal parameter */
#define USE 2<<2 /* name is used */
-#define DEF_STAR 2<<3 /* parameter is star arg */
-#define DEF_DOUBLESTAR 2<<4 /* parameter is star-star arg */
-#define DEF_INTUPLE 2<<5 /* name defined in tuple in parameters */
-#define DEF_FREE 2<<6 /* name used but not defined in nested block */
-#define DEF_FREE_GLOBAL 2<<7 /* free variable is actually implicit global */
-#define DEF_FREE_CLASS 2<<8 /* free variable from class's method */
-#define DEF_IMPORT 2<<9 /* assignment occurred via import */
+#define DEF_FREE 2<<3 /* name used but not defined in nested block */
+#define DEF_FREE_CLASS 2<<4 /* free variable from class's method */
+#define DEF_IMPORT 2<<5 /* assignment occurred via import */
#define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c
index 53e987e924..13ae337ca7 100644
--- a/Modules/symtablemodule.c
+++ b/Modules/symtablemodule.c
@@ -59,11 +59,7 @@ init_symtable(void)
PyModule_AddIntConstant(m, "DEF_GLOBAL", DEF_GLOBAL);
PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL);
PyModule_AddIntConstant(m, "DEF_PARAM", DEF_PARAM);
- PyModule_AddIntConstant(m, "DEF_STAR", DEF_STAR);
- PyModule_AddIntConstant(m, "DEF_DOUBLESTAR", DEF_DOUBLESTAR);
- PyModule_AddIntConstant(m, "DEF_INTUPLE", DEF_INTUPLE);
PyModule_AddIntConstant(m, "DEF_FREE", DEF_FREE);
- PyModule_AddIntConstant(m, "DEF_FREE_GLOBAL", DEF_FREE_GLOBAL);
PyModule_AddIntConstant(m, "DEF_FREE_CLASS", DEF_FREE_CLASS);
PyModule_AddIntConstant(m, "DEF_IMPORT", DEF_IMPORT);
PyModule_AddIntConstant(m, "DEF_BOUND", DEF_BOUND);