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/NMesh.c | |
parent | ee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (diff) |
removed unneeded dealloc functions
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 0f9a3dd79ca..8e25f0e160e 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -398,11 +398,6 @@ static int check_NMeshLists( BPy_NMesh *nmesh ) /* Mesh Color Object */ /*****************************/ -static void NMCol_dealloc( PyObject * self ) -{ - PyObject_DEL( self ); -} - static BPy_NMCol *newcol( char r, char g, char b, char a ) { BPy_NMCol *mc = ( BPy_NMCol * ) PyObject_NEW( BPy_NMCol, &NMCol_Type ); @@ -481,7 +476,7 @@ PyTypeObject NMCol_Type = { sizeof( BPy_NMCol ), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ - ( destructor ) NMCol_dealloc, /* tp_dealloc */ + NULL, /* tp_dealloc */ ( printfunc ) 0, /* tp_print */ ( getattrfunc ) NMCol_getattr, /* tp_getattr */ ( setattrfunc ) NMCol_setattr, /* tp_setattr */ @@ -837,11 +832,6 @@ static PyObject *M_NMesh_Vert( PyObject * self, PyObject * args ) return ( PyObject * ) newvert( co ); } -static void NMVert_dealloc( PyObject * self ) -{ - PyObject_DEL( self ); -} - static PyObject *NMVert_getattr( PyObject * self, char *name ) { BPy_NMVert *mv = ( BPy_NMVert * ) self; @@ -993,7 +983,7 @@ PyTypeObject NMVert_Type = { sizeof( BPy_NMVert ), /*tp_basicsize */ 0, /*tp_itemsize */ /* methods */ - ( destructor ) NMVert_dealloc, /*tp_dealloc */ + NULL, /*tp_dealloc */ ( printfunc ) 0, /*tp_print */ ( getattrfunc ) NMVert_getattr, /*tp_getattr */ ( setattrfunc ) NMVert_setattr, /*tp_setattr */ |