diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:47:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:47:53 +0300 |
commit | 52e43441d123d8ec74dbdf0de6ab97fc30904184 (patch) | |
tree | 05b05f7e800bd8402392530c457c3e438341907b /source/blender/python/api2_2x/Lattice.c | |
parent | ee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (diff) |
removed unneeded dealloc functions
Diffstat (limited to 'source/blender/python/api2_2x/Lattice.c')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/source/blender/python/api2_2x/Lattice.c b/source/blender/python/api2_2x/Lattice.c index fe6bd3f500a..fc32d215895 100644 --- a/source/blender/python/api2_2x/Lattice.c +++ b/source/blender/python/api2_2x/Lattice.c @@ -597,18 +597,6 @@ static PyObject *Lattice_copy( BPy_Lattice * self ) return py_Lattice; } -//*************************************************************************** -// Function: Lattice_dealloc -// Description: This is a callback function for the BPy_Lattice type. It is -// the destructor function. -//*************************************************************************** -static void Lattice_dealloc( BPy_Lattice * self ) -{ - PyObject_DEL( self ); -} - - - static int Lattice_compare( BPy_Lattice * a, BPy_Lattice * b ) { return ( a->lattice == b->lattice ) ? 0 : -1; @@ -751,8 +739,8 @@ PyTypeObject Lattice_Type = { sizeof( BPy_Lattice ), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ - ( destructor ) Lattice_dealloc, /* tp_dealloc */ - 0, /* tp_print */ + NULL, /* tp_dealloc */ + 0, /* tp_print */ NULL, /* tp_getattr */ NULL, /* tp_setattr */ ( cmpfunc ) Lattice_compare, /* tp_compare */ |