removed unneeded dealloc functions

This commit is contained in:
2007-03-15 01:47:53 +00:00
parent ee5dc4d0bf
commit 52e43441d1
34 changed files with 58 additions and 420 deletions

View File

@@ -124,7 +124,6 @@ static PyMethodDef BPy_Text_methods[] = {
/*****************************************************************************/
/* Python Text_Type callback function prototypes: */
/*****************************************************************************/
static void Text_dealloc( BPy_Text * self );
static int Text_compare( BPy_Text * a, BPy_Text * b );
static PyObject *Text_repr( BPy_Text * self );
@@ -459,16 +458,6 @@ static PyObject *Text_asLines( BPy_Text * self )
return list;
}
/*****************************************************************************/
/* Function: Text_dealloc */
/* Description: This is a callback function for the BPy_Text type. It is */
/* the destructor function. */
/*****************************************************************************/
static void Text_dealloc( BPy_Text * self )
{
PyObject_DEL( self );
}
/*****************************************************************************/
/* Function: Text_compare */
/* Description: This is a callback function for the BPy_Text type. It */
@@ -528,7 +517,7 @@ PyTypeObject Text_Type = {
sizeof( BPy_Text ), /* tp_basicsize */
0, /* tp_itemsize */
/* methods */
( destructor ) Text_dealloc, /* tp_dealloc */
NULL, /* tp_dealloc */
NULL, /* tp_print */
NULL, /* tp_getattr */
NULL, /* tp_setattr */