]> granicus.if.org Git - python/commitdiff
remove some unused symtable constants
authorBenjamin Peterson <benjamin@python.org>
Tue, 23 Jun 2009 03:01:56 +0000 (03:01 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 23 Jun 2009 03:01:56 +0000 (03:01 +0000)
Include/symtable.h
Modules/symtablemodule.c

index 29cd846cd5b66dc81c9fce3cdab6fee9f797b6c2..a5f7652f9f02755cd2fc958bf3bcfd96b524cb93 100644 (file)
@@ -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)
 
index 53e987e92490f7f13c98330010914a3c6ac63078..13ae337ca77cb05af9b24d705f61df12329c3d2a 100644 (file)
@@ -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);