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

@@ -156,7 +156,6 @@ static PyMethodDef BPy_Metaelem_methods[] = {
/*****************************************************************************/
/* Python Metaball_Type callback function prototypes: */
/*****************************************************************************/
static void Metaball_dealloc( BPy_Metaball * self );
static PyObject *Metaball_repr( BPy_Metaball * self );
static int Metaball_compare( BPy_Metaball * a, BPy_Metaball * b );
@@ -229,7 +228,7 @@ PyTypeObject Metaball_Type = {
/* Methods to implement standard operations */
( destructor ) Metaball_dealloc,/* destructor tp_dealloc; */
NULL, /* destructor tp_dealloc; */
NULL, /* printfunc tp_print; */
NULL, /* getattrfunc tp_getattr; */
NULL, /* setattrfunc tp_setattr; */
@@ -731,14 +730,6 @@ static PyObject *Metaball_getElements( BPy_Metaball * self )
return MetaElemSeq_CreatePyObject(self, NULL);
}
/*
* Metaball dealloc - free from memory
*/
static void Metaball_dealloc( BPy_Metaball * self )
{
PyObject_DEL( self );
}
/*
* Metaelem dealloc - free from memory
*/