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/NLA.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'source/blender/python/api2_2x/NLA.c') diff --git a/source/blender/python/api2_2x/NLA.c b/source/blender/python/api2_2x/NLA.c index 22df94b4bfb..2c5011f94fc 100644 --- a/source/blender/python/api2_2x/NLA.c +++ b/source/blender/python/api2_2x/NLA.c @@ -120,7 +120,6 @@ static PyMethodDef BPy_Action_methods[] = { /*****************************************************************************/ /* Python TypeAction callback function prototypes: */ /*****************************************************************************/ -static void Action_dealloc( BPy_Action * bone ); static int Action_compare( BPy_Action * a, BPy_Action * b ); static PyObject *Action_repr( BPy_Action * bone ); @@ -365,12 +364,6 @@ static PyObject *Action_getAllChannelIpos( BPy_Action * self ) return dict; } -/*----------------------------------------------------------------------*/ -static void Action_dealloc( BPy_Action * self ) -{ - PyObject_DEL( self ); -} - /*----------------------------------------------------------------------*/ static int Action_compare( BPy_Action * a, BPy_Action * b ) { @@ -432,8 +425,8 @@ PyTypeObject Action_Type = { sizeof( BPy_Action ), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ - ( destructor ) Action_dealloc, /* tp_dealloc */ - NULL, /* tp_print */ + NULL, /* tp_dealloc */ + NULL, /* tp_print */ NULL, /* tp_getattr */ NULL, /* tp_setattr */ ( cmpfunc ) Action_compare, /* tp_compare */ @@ -1055,7 +1048,7 @@ PyTypeObject ActionStrip_Type = { /* Methods to implement standard operations */ - ( destructor ) Action_dealloc,/* destructor tp_dealloc; */ + NULL, /* destructor tp_dealloc; */ NULL, /* printfunc tp_print; */ NULL, /* getattrfunc tp_getattr; */ NULL, /* setattrfunc tp_setattr; */ @@ -1439,7 +1432,7 @@ PyTypeObject ActionStrips_Type = { /* Methods to implement standard operations */ - ( destructor ) Action_dealloc,/* destructor tp_dealloc; */ + NULL, /* destructor tp_dealloc; */ NULL, /* printfunc tp_print; */ NULL, /* getattrfunc tp_getattr; */ NULL, /* setattrfunc tp_setattr; */ -- cgit v1.2.3