From 52e43441d123d8ec74dbdf0de6ab97fc30904184 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Mar 2007 01:47:53 +0000 Subject: removed unneeded dealloc functions --- source/blender/python/api2_2x/Texture.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source/blender/python/api2_2x/Texture.c') diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c index 9e657dec109..8d980ddf988 100644 --- a/source/blender/python/api2_2x/Texture.c +++ b/source/blender/python/api2_2x/Texture.c @@ -780,7 +780,6 @@ static PyGetSetDef BPy_Texture_getseters[] = { /*****************************************************************************/ /* Python Texture_Type callback function prototypes: */ /*****************************************************************************/ -static void Texture_dealloc( BPy_Texture * self ); static int Texture_compare( BPy_Texture * a, BPy_Texture * b ); static PyObject *Texture_repr( BPy_Texture * self ); @@ -797,7 +796,7 @@ PyTypeObject Texture_Type = { /* Methods to implement standard operations */ - ( destructor ) Texture_dealloc,/* destructor tp_dealloc; */ + NULL, /* destructor tp_dealloc; */ NULL, /* printfunc tp_print; */ NULL, /* getattrfunc tp_getattr; */ NULL, /* setattrfunc tp_setattr; */ @@ -974,11 +973,6 @@ static PyObject *Texture_repr( BPy_Texture * self ) self->texture->id.name + 2 ); } -static void Texture_dealloc( BPy_Texture * self ) -{ - PyObject_DEL( self ); -} - static PyObject *M_Texture_TypesDict( void ) { PyObject *Types = PyConstant_New( ); -- cgit v1.2.3