]> granicus.if.org Git - python/commitdiff
Remove Py_Refcnt, Py_Type, Py_Size, as they were added only
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 24 Apr 2008 13:16:36 +0000 (13:16 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 24 Apr 2008 13:16:36 +0000 (13:16 +0000)
for backwards compatibility, yet 2.5 did not have them at all.

Include/object.h

index 6ec3cbf4ae283109098accd3ffafca5f641f22fa..4bbcf002eff3bce910c49163247925ac88809446 100644 (file)
@@ -115,11 +115,6 @@ typedef struct {
 #define Py_TYPE(ob)            (((PyObject*)(ob))->ob_type)
 #define Py_SIZE(ob)            (((PyVarObject*)(ob))->ob_size)
 
-/* B/w compatibility */
-#define Py_Refcnt(ob)          Py_REFCNT(op)
-#define Py_Type(op)            Py_TYPE(op)
-#define Py_Size(op)            Py_SIZE(op)
-
 /*
 Type objects contain a string containing the type name (to help somewhat
 in debugging), the allocation parameters (see PyObject_New() and