removed unneeded dealloc functions
authorCampbell Barton <ideasman42@gmail.com>
Thu, 15 Mar 2007 01:47:53 +0000 (01:47 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 15 Mar 2007 01:47:53 +0000 (01:47 +0000)
34 files changed:
source/blender/python/api2_2x/Camera.c
source/blender/python/api2_2x/Constraint.c
source/blender/python/api2_2x/CurNurb.c
source/blender/python/api2_2x/Curve.c
source/blender/python/api2_2x/Effect.c
source/blender/python/api2_2x/Font.c
source/blender/python/api2_2x/Group.c
source/blender/python/api2_2x/IDProp.c
source/blender/python/api2_2x/Image.c
source/blender/python/api2_2x/Ipo.c
source/blender/python/api2_2x/Ipocurve.c
source/blender/python/api2_2x/Key.c
source/blender/python/api2_2x/Lattice.c
source/blender/python/api2_2x/MTex.c
source/blender/python/api2_2x/Main.c
source/blender/python/api2_2x/Mesh.c
source/blender/python/api2_2x/Metaball.c
source/blender/python/api2_2x/Modifier.c
source/blender/python/api2_2x/NLA.c
source/blender/python/api2_2x/NMesh.c
source/blender/python/api2_2x/Scene.c
source/blender/python/api2_2x/Sound.c
source/blender/python/api2_2x/SurfNurb.c
source/blender/python/api2_2x/Text.c
source/blender/python/api2_2x/Text3d.c
source/blender/python/api2_2x/Texture.c
source/blender/python/api2_2x/World.c
source/blender/python/api2_2x/charRGBA.c
source/blender/python/api2_2x/rgbTuple.c
source/blender/python/api2_2x/sceneRadio.c
source/blender/python/api2_2x/sceneRender.c
source/blender/python/api2_2x/sceneSequence.c
source/blender/python/api2_2x/sceneTimeLine.c
source/blender/python/api2_2x/windowTheme.c

index 2ec89de1c7b3ac1c58ed2903f456c8aa09268716..04c94ef5dba1c0e0499ec182be00ffc4cd58773a 100644 (file)
@@ -203,7 +203,6 @@ static PyMethodDef BPy_Camera_methods[] = {
 /*****************************************************************************/
 /* Python Camera_Type callback function prototypes:                          */
 /*****************************************************************************/
-static void Camera_dealloc( BPy_Camera * self );
 static int Camera_compare( BPy_Camera * a, BPy_Camera * b );
 static PyObject *Camera_repr( BPy_Camera * self );
 
@@ -653,12 +652,6 @@ static PyObject *Camera_copy( BPy_Camera * self )
        return pycam;
 }
 
-static void Camera_dealloc( BPy_Camera * self )
-{
-       PyObject_DEL( self );
-}
-
-
 static PyObject *Camera_getType( BPy_Camera * self )
 {
        if (self->camera->type == EXPP_CAM_TYPE_PERSP)
@@ -949,7 +942,7 @@ PyTypeObject Camera_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Camera_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index d67557084a12f553e7afe3434716a97f4ca9cab6..1fb202be6afc58216003a45bfab3c1cfa5214478 100644 (file)
@@ -206,7 +206,6 @@ static PyMappingMethods Constraint_as_mapping = {
 /*****************************************************************************/
 /* Python Constraint_Type callback function prototypes:                      */
 /*****************************************************************************/
-static void Constraint_dealloc( BPy_Constraint * self );
 static PyObject *Constraint_repr( BPy_Constraint * self );
 static int Constraint_compare( BPy_Constraint * a, BPy_Constraint * b );
 
@@ -223,7 +222,7 @@ PyTypeObject Constraint_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Constraint_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -1418,17 +1417,6 @@ static int Constraint_setData( BPy_Constraint * self, PyObject * key,
        return result;
 }
 
-/*****************************************************************************/
-/* Function:    Constraint_dealloc                                           */
-/* Description: This is a callback function for the BPy_Constraint type. It  */
-/*              destroys data when the object is deleted.                    */
-/*****************************************************************************/
-static void Constraint_dealloc( BPy_Constraint * self )
-{
-       PyObject_DEL( self );
-}
-
-
 /*****************************************************************************/
 /* Function:    Constraint_compare                                           */
 /* Description: This compares 2 constraint python types, == or != only.      */
index da551307d83f78ebebc4b47ddd8fe3479a977d8e..b244d24e37f35578c424518012ac8b8c87dbf3ae 100644 (file)
@@ -77,7 +77,6 @@ char M_CurNurb_doc[] = "CurNurb";
   CurNurb_Type callback function prototypes:                          
 */
 
-static void CurNurb_dealloc( BPy_CurNurb * self );
 static int CurNurb_compare( BPy_CurNurb * a, BPy_CurNurb * b );
 static PyObject *CurNurb_repr( BPy_CurNurb * self );
 
@@ -207,8 +206,8 @@ PyTypeObject CurNurb_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) CurNurb_dealloc, /*    destructor tp_dealloc; */
-       NULL,                   /*    printfunc tp_print; */
+       NULL,                                   /*    destructor tp_dealloc; */
+       NULL,                                   /*    printfunc tp_print; */
        NULL,                                   /*    getattrfunc tp_getattr; */
        NULL,                                   /*    setattrfunc tp_setattr; */
        ( cmpfunc ) CurNurb_compare,    /*    cmpfunc tp_compare; */
@@ -279,11 +278,6 @@ PyTypeObject CurNurb_Type = {
        0
 };
 
-void CurNurb_dealloc( BPy_CurNurb * self )
-{
-       PyObject_DEL( self );
-}
-
 /*
   compare
   in this case, we consider two CurNurbs equal, if they point to the same
index d32fac3139fbbdfe8c925a4064c8cfcf1528f41d..50dc663d4396bd3df1e6acad93286fa3bcca484a 100644 (file)
@@ -1207,16 +1207,6 @@ PyObject *Curve_getNurb( BPy_Curve * self, int n )
 
 }
 
-/*****************************************************************************/
-/* Function:    Curve_dealloc                                                */
-/* Description: This is a callback function for the BPy_Curve type. It is    */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-static void Curve_dealloc( BPy_Curve * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    Curve_compare                                                   */
 /* Description: This compares 2 curve python types, == or != only.                      */
@@ -1528,7 +1518,6 @@ Sets a control point "},
 /*****************************************************************************/
 /*  Python Curve_Type callback function prototypes:                         */
 /*****************************************************************************/
-static void Curve_dealloc( BPy_Curve * msh );
 static int Curve_compare( BPy_Curve * a, BPy_Curve * b );
 static PyObject *Curve_repr( BPy_Curve * msh );
 
@@ -1555,7 +1544,7 @@ PyTypeObject Curve_Type = {
        sizeof( BPy_Curve ),                /* tp_basicsize */
        0,                                  /* tp_itemsize */
        /* methods */
-       ( destructor ) Curve_dealloc,       /* tp_dealloc */
+       NULL,                                                           /* tp_dealloc */
        0,                                  /* tp_print */
        ( getattrfunc ) NULL,               /* tp_getattr */
        ( setattrfunc ) NULL,               /* tp_setattr */
index 7fa1b1aabe149ad6f9af14635c55e9abc1fd5af8..4f689de4b05b5a125cf94b8818999979409bea0e 100644 (file)
@@ -204,7 +204,6 @@ static PyObject *Effect_oldsetDefvec( BPy_Effect * self, PyObject * a );
 /*****************************************************************************/
 /* Python Effect_Type callback function prototypes:                           */
 /*****************************************************************************/
-static void Effect_dealloc( BPy_Effect * msh );
 static PyObject *Effect_repr( void );
 
 /*****************************************************************************/
@@ -476,7 +475,7 @@ PyTypeObject Effect_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Effect_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -1610,16 +1609,6 @@ static PyObject *Effect_getParticlesLoc( BPy_Effect * self )
        return list;    
 }
 
-/*****************************************************************************/
-/* Function:    Effect_dealloc                                               */
-/* Description: This is a callback function for the BPy_Effect type. It is   */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-static void Effect_dealloc( BPy_Effect * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    Effect_repr                                                  */
 /* Description: This is a callback function for the BPy_Effect type. It      */
index 2603326a68d39b0ce3fee6aaa8f6525222bb5447..6c46e54cfd838e0013f5a3ce884985eb82b91089 100644 (file)
@@ -80,7 +80,6 @@ static PyMethodDef BPy_Font_methods[] = {
 };
 
 /*--------------- Python TypeFont callback function prototypes----------*/
-static void Font_dealloc( BPy_Font * font );
 static int Font_compare( BPy_Font * a1, BPy_Font * a2 );
 static PyObject *Font_repr( BPy_Font * font );
 
@@ -274,7 +273,7 @@ PyTypeObject Font_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Font_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -368,12 +367,6 @@ PyObject *Font_Init( void )
 /*--------------- Font module internal callbacks-----------------*/
 /*---------------BPy_Font internal callbacks/methods-------------*/
 
-//--------------- dealloc------------------------------------------
-static void Font_dealloc( BPy_Font * self )
-{
-       PyObject_DEL( self );
-}
-
 /*--------------- repr---------------------------------------------*/
 static PyObject *Font_repr( BPy_Font * self )
 {
index b785c58df3a67abfbb2c739ab39ed8b67c00c2cb..d9a5fe7e7d98db54da774a60232274035d7fc077 100755 (executable)
@@ -208,7 +208,6 @@ static int Group_setObjects( BPy_Group * self, PyObject * args )
 /*****************************************************************************/
 /* PythonTypeObject callback function prototypes                        */
 /*****************************************************************************/
-static void Group_dealloc( BPy_Group * obj );
 static PyObject *Group_repr( BPy_Group * obj );
 static int Group_compare( BPy_Group * a, BPy_Group * b );
 
@@ -271,7 +270,7 @@ PyTypeObject Group_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Group_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -527,16 +526,6 @@ Group *Group_FromPyObject( PyObject * py_grp )
        return ( blen_grp->group );
 }
 
-/*****************************************************************************/
-/* Function:   Group_dealloc                                            */
-/* Description: This is a callback function for the BlenObject type. It is  */
-/*             the destructor function.                                 */
-/*****************************************************************************/
-static void Group_dealloc( BPy_Group * grp )
-{
-       PyObject_DEL( grp );
-}
-
 /*****************************************************************************/
 /* Function:   Group_compare                                            */
 /* Description: This is a callback function for the BPy_Group type. It  */
index 34da92484a9b840f2a74210d1bfe8dde084b0baf..8b2dc4543f998c8fc30f061db9adfd2e0aba61ab 100644 (file)
@@ -46,10 +46,6 @@ extern PyTypeObject IDArray_Type;
 extern PyTypeObject IDGroup_Iter_Type;
 
 /*********************** ID Property Main Wrapper Stuff ***************/
-void IDGroup_dealloc( BPy_IDProperty *self )
-{
-       PyObject_DEL( self );
-}
 
 PyObject *IDGroup_repr( BPy_IDProperty *self )
 {
@@ -554,7 +550,7 @@ PyTypeObject IDGroup_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) IDGroup_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,     /* getattrfunc tp_getattr; */
        NULL,     /* setattrfunc tp_setattr; */
@@ -625,11 +621,6 @@ PyObject *BPy_Wrap_IDProperty(ID *id, IDProperty *prop, IDProperty *parent)
 
 /********Array Wrapper********/
 
-void IDArray_dealloc(void *self)
-{
-       PyObject_DEL(self);
-}
-
 PyObject *IDArray_repr(BPy_IDArray *self)
 {
        return Py_BuildValue("s", "(ID Array)");
@@ -741,7 +732,7 @@ PyTypeObject IDArray_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) IDArray_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,     /* getattrfunc tp_getattr; */
        NULL,     /* setattrfunc tp_setattr; */
@@ -814,10 +805,6 @@ PyTypeObject IDArray_Type = {
 };
 
 /*********** ID Property Group iterator ********/
-void IDGroup_Iter_dealloc(void *self)
-{
-       PyObject_DEL(self);
-}
 
 PyObject *IDGroup_Iter_iterself(PyObject *self)
 {
@@ -858,7 +845,7 @@ PyTypeObject IDGroup_Iter_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) IDGroup_Iter_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,     /* getattrfunc tp_getattr; */
        NULL,     /* setattrfunc tp_setattr; */
index a030f635010951d0ad3fc008affe1ca149c79783..5aa8def8abbe7a00fa047e974da31698e77a29b0 100644 (file)
@@ -749,20 +749,9 @@ PyObject *Image_Init( void )
 /*****************************************************************************/
 /* Python Image_Type callback function prototypes:      */
 /*****************************************************************************/
-static void Image_dealloc( BPy_Image * self );
 static int Image_compare( BPy_Image * a, BPy_Image * b );
 static PyObject *Image_repr( BPy_Image * self );
 
-/*****************************************************************************/
-/* Function:           Image_dealloc            */
-/* Description: This is a callback function for the BPy_Image type. It is  */
-/*             the destructor function.         */
-/*****************************************************************************/
-static void Image_dealloc( BPy_Image * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:           Image_CreatePyObject     */
 /* Description: This function will create a new BPy_Image from an existing  */
@@ -1320,8 +1309,8 @@ PyTypeObject Image_Type = {
        sizeof( BPy_Image ),    /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Image_dealloc,   /* tp_dealloc */
-       0,                      /* tp_print */
+       NULL,   /* tp_dealloc */
+       0,              /* tp_print */
        NULL,   /* tp_getattr */
        NULL,   /* tp_setattr */
        ( cmpfunc ) Image_compare,      /* tp_compare */
index 674b4e6d3f15bfbffb94c411b55af824c46402a6..4c1865d72b191b8e5123efeef9405b78cb335e1b 100644 (file)
@@ -229,7 +229,6 @@ static PySequenceMethods Ipo_as_sequence = {
 /*****************************************************************************/
 /* Python Ipo_Type callback function prototypes:                             */
 /*****************************************************************************/
-static void Ipo_dealloc( BPy_Ipo * self );
 /*static int IpoPrint (BPy_Ipo *self, FILE *fp, int flags);*/
 static int Ipo_compare( BPy_Ipo * a, BPy_Ipo * b );
 static PyObject *Ipo_repr( BPy_Ipo * self );
@@ -365,7 +364,7 @@ PyTypeObject Ipo_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Ipo_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -1267,16 +1266,6 @@ static int Ipo_setChannel( BPy_Ipo * self, PyObject * value )
        return 0;
 }
 
-/*****************************************************************************/
-/* Function:    Ipo_dealloc                                                  */
-/* Description: This is a callback function for the BPy_Ipo type. It is      */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-static void Ipo_dealloc( BPy_Ipo * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    Ipo_compare                                                             */
 /* Description: This compares 2 ipo python types, == or != only.             */
index 5a45d9f34852a7787e8944ff549a30b354420470..1d9477c9802abff1e4f2f1e339a93877d1d18102 100644 (file)
@@ -192,7 +192,6 @@ static PyMappingMethods IpoCurve_as_mapping = {
 /*****************************************************************************/
 static int IpoCurve_compare( C_IpoCurve * a, C_IpoCurve * b );
 static PyObject *IpoCurve_repr( C_IpoCurve * self );
-static void IpoCurve_dealloc( C_IpoCurve * self );
 
 /*****************************************************************************/
 /* Python IpoCurve_Type structure definition:                                */
@@ -204,7 +203,7 @@ PyTypeObject IpoCurve_Type = {
        sizeof( C_IpoCurve ),                           /* tp_basicsize */
        0,                                                                      /* tp_itemsize */
        /* methods */
-       ( destructor ) IpoCurve_dealloc,    /* tp_dealloc */
+       NULL,                                                       /* tp_dealloc */
        0,                                                                      /* tp_print */
        ( getattrfunc ) NULL,               /* tp_getattr */
        ( setattrfunc ) NULL,               /* tp_setattr */
@@ -651,17 +650,6 @@ static PyObject *IpoCurve_getPoints( C_IpoCurve * self )
        return list;
 }
 
-/*****************************************************************************/
-/* Function:    Ipo_dealloc                                                  */
-/* Description: This is a callback function for the C_IpoCurve type. It is   */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-
-static void IpoCurve_dealloc( C_IpoCurve * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    IpoCurve_compare                                                */
 /* Description: This compares 2 python types, == or != only.                        */
index f867545ce167e63d6a17241e5b2d0758f23eeccd..27a92e8c17ef1d844457ff0c25cbbd4578786033 100644 (file)
@@ -61,8 +61,6 @@
 /* macro from blenkernel/intern/key.c:98 */
 #define GS(a)  (*((short *)(a)))
 
-static void Key_dealloc( PyObject * self );
-static void KeyBlock_dealloc( PyObject * self );
 static int Key_compare( BPy_Key * a, BPy_Key * b );
 static PyObject *Key_repr( BPy_Key * self );
 
@@ -137,7 +135,7 @@ PyTypeObject Key_Type = {
        sizeof( BPy_Key ),                              /*tp_basicsize */
        0,                                                              /*tp_itemsize */
        /* methods */
-       ( destructor ) Key_dealloc,             /*tp_dealloc */
+       NULL,                                                   /*tp_dealloc */
        ( printfunc ) 0,                                /*tp_print */
        ( getattrfunc ) 0,      /*tp_getattr */
        ( setattrfunc ) 0,                              /*tp_setattr */
@@ -214,7 +212,7 @@ PyTypeObject KeyBlock_Type = {
        sizeof( BPy_KeyBlock ), /*tp_basicsize */
        0,                      /*tp_itemsize */
        /* methods */
-       ( destructor ) KeyBlock_dealloc,        /*tp_dealloc */
+       NULL,                           /*tp_dealloc */
        NULL,                           /*tp_print */
        NULL,                           /*tp_getattr */
        NULL,                           /*tp_setattr */
@@ -285,11 +283,6 @@ PyTypeObject KeyBlock_Type = {
        NULL
 };
 
-static void Key_dealloc( PyObject * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *new_Key(Key * oldkey)
 {
        BPy_Key *k = PyObject_NEW( BPy_Key, &Key_Type );
@@ -404,11 +397,6 @@ static PyObject *Key_getValue( BPy_Key * self )
 
 /* ------------ Key Block Functions -------------- */
 
-static void KeyBlock_dealloc( PyObject * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *new_KeyBlock( KeyBlock * oldkeyBlock, Key *parentKey)
 {
        BPy_KeyBlock *kb = PyObject_NEW( BPy_KeyBlock, &KeyBlock_Type );
index fe6bd3f500a1f5f0387494c2a9c0d9a4bb799334..fc32d2158958deff75855a7534cb88d78cd3dbec 100644 (file)
@@ -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 */
index 13c2ac8e0b7f1387d72a3ea826d327d8ed5875b0..61ea64a68e91e3292e96eef05f878d0fd9f8ba9f 100644 (file)
@@ -65,7 +65,6 @@ static PyMethodDef BPy_MTex_methods[] = {
 /*****************************************************************************/
 /* Python MTex_Type callback function prototypes:                            */
 /*****************************************************************************/
-static void MTex_dealloc( BPy_MTex * self );
 static int MTex_compare( BPy_MTex * a, BPy_MTex * b );
 static PyObject *MTex_repr( BPy_MTex * self );
 
@@ -196,7 +195,7 @@ PyTypeObject MTex_Type = {
        sizeof( BPy_MTex ),     /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) MTex_dealloc,    /* tp_dealloc */
+       NULL,           /* tp_dealloc */
        0,                      /* tp_print */
        0,      /* tp_getattr */
        0,      /* tp_setattr */
@@ -280,11 +279,6 @@ static PyObject *MTex_setTexMethod( BPy_MTex * self, PyObject * args )
        return EXPP_setterWrapper( (void *)self, args, (setter)MTex_setTex );
 }
 
-static void MTex_dealloc( BPy_MTex * self )
-{
-       PyObject_DEL( self );
-}
-
 static int MTex_compare( BPy_MTex * a, BPy_MTex * b )
 {
        return ( a->mtex == b->mtex ) ? 0 : -1;
index 138c6f9fa7e705b775021e18c1e64256563d69c2..f25ef8bcf0ed7ed292ffb1ae82d35726e6829b3e 100644 (file)
@@ -618,16 +618,6 @@ PyObject *MainSeq_unlink(BPy_MainSeq *self, PyObject * args)
                                      "Only types Scene, Group and Text can unlink" );  
 }
 
-/************************************************************************
- *
- * Python MainSeq_Type standard operations
- *
- ************************************************************************/
-static void MainSeq_dealloc( BPy_MainSeq * self )
-{
-       PyObject_DEL( self );
-}
-
 static int MainSeq_compare( BPy_MainSeq * a, BPy_MainSeq * b )
 {
        return ( a->type == b->type) ? 0 : -1;  
@@ -673,7 +663,7 @@ PyTypeObject MainSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MainSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index aec85597fd9e2f6798e5578b388aeb87dce7cf05..7e8f51f50026fbde15dbdbe85a9176381be25b09 100644 (file)
@@ -744,11 +744,6 @@ static int MCol_ass_item(BPy_MCol * self, int i, PyObject * value)
  *
  ************************************************************************/
 
-static void MCol_dealloc( BPy_MCol * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *MCol_repr( BPy_MCol * self )
 {
        return PyString_FromFormat( "[MCol %d %d %d %d]",
@@ -783,7 +778,7 @@ PyTypeObject MCol_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MCol_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -1976,11 +1971,6 @@ static struct PyMethodDef BPy_MVertSeq_methods[] = {
  *
  ************************************************************************/
 
-static void MVertSeq_dealloc( BPy_MVertSeq * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Python MVertSeq_Type structure definition:                               */
 /*****************************************************************************/
@@ -1994,7 +1984,7 @@ PyTypeObject MVertSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MVertSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -2440,11 +2430,6 @@ static PyObject *MEdge_nextIter( BPy_MEdge * self )
  *
  ************************************************************************/
 
-static void MEdge_dealloc( BPy_MEdge * self )
-{
-       PyObject_DEL( self );
-}
-
 static int MEdge_compare( BPy_MEdge * a, BPy_MEdge * b )
 {
        return( a->mesh == b->mesh && a->index == b->index ) ? 0 : -1;
@@ -2483,7 +2468,7 @@ PyTypeObject MEdge_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MEdge_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -3343,11 +3328,6 @@ static struct PyMethodDef BPy_MEdgeSeq_methods[] = {
  *
  ************************************************************************/
 
-static void MEdgeSeq_dealloc( BPy_MEdgeSeq * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Python MEdgeSeq_Type structure definition:                               */
 /*****************************************************************************/
@@ -3361,7 +3341,7 @@ PyTypeObject MEdgeSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MEdgeSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -4443,12 +4423,6 @@ static PyObject *MFace_nextIter( BPy_MFace * self )
  * Python MFace_Type standard operations
  *
  ************************************************************************/
-
-static void MFace_dealloc( BPy_MFace * self )
-{
-       PyObject_DEL( self );
-}
-
 static int MFace_compare( BPy_MFace * a, BPy_MFace * b )
 {
        return( a->mesh == b->mesh && a->index == b->index ) ? 0 : -1;
@@ -4510,7 +4484,7 @@ PyTypeObject MFace_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MFace_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -5283,11 +5257,6 @@ static struct PyMethodDef BPy_MFaceSeq_methods[] = {
  *
  ************************************************************************/
 
-static void MFaceSeq_dealloc( BPy_MFaceSeq * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Python MFaceSeq_Type structure definition:                               */
 /*****************************************************************************/
@@ -5301,7 +5270,7 @@ PyTypeObject MFaceSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) MFaceSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index ba6e0364e5921490a440986410ce0252876f457b..baf8ae27ec64a8e2f4a3c5a55e91052dcb5ebfc5 100644 (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
  */
index 6745ad4aa8d70ca48e94e006c96a7833c289c38c..eefbd1b577dac8a777d01ea323cc4781a750caa6 100644 (file)
@@ -176,7 +176,6 @@ static PyMappingMethods Modifier_as_mapping = {
 /*****************************************************************************/
 /* Python Modifier_Type callback function prototypes:                        */
 /*****************************************************************************/
-static void Modifier_dealloc( BPy_Modifier * self );
 static PyObject *Modifier_repr( BPy_Modifier * self );
 
 /*****************************************************************************/
@@ -192,7 +191,7 @@ PyTypeObject Modifier_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Modifier_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -976,16 +975,6 @@ static int Modifier_setData( BPy_Modifier * self, PyObject * key,
                        "unsupported modifier setting" );
 }
 
-/*****************************************************************************/
-/* Function:    Modifier_dealloc                                             */
-/* Description: This is a callback function for the BPy_Modifier type. It    */
-/*              destroys data when the object is deleted.                    */
-/*****************************************************************************/
-static void Modifier_dealloc( BPy_Modifier * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    Modifier_repr                                                */
 /* Description: This is a callback function for the BPy_Modifier type. It    */
@@ -1213,17 +1202,6 @@ static PyObject *ModSeq_moveDown( BPy_ModSeq * self, PyObject *args )
        Py_RETURN_NONE;
 }
 
-
-/*****************************************************************************/
-/* Function:    ModSeq_dealloc                                            */
-/* Description: This is a callback function for the BPy_Modifier type. It    */
-/*              destroys data when the object is deleted.                    */
-/*****************************************************************************/
-static void ModSeq_dealloc( BPy_Modifier * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Python BPy_ModSeq methods table:                                       */
 /*****************************************************************************/
@@ -1253,7 +1231,7 @@ PyTypeObject ModSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) ModSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index 22df94b4bfb42c9e212a44b4f35e80444b61cb4a..2c5011f94fcd97c48bcbf93d8f6072299be75b4d 100644 (file)
@@ -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; */
index 0f9a3dd79caabfb72d607ad3a7b63e019398acf3..8e25f0e160e6c467a5794c1f5ba3bb6dd8292c9b 100644 (file)
@@ -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 */
index 96ca435cdc9d38336a4e0381ea9a88e5e5e741d2..13258b32f5312794ba6492f53ab6f84f5caf8868 100644 (file)
@@ -94,7 +94,7 @@ PyObject *M_Object_Get( PyObject * self, PyObject * args ); /* from Object.c */
 enum obj_consts {
        EXPP_OBSEQ_NORMAL = 0,
        EXPP_OBSEQ_SELECTED,
-       EXPP_OBSEQ_CONTEXT,
+       EXPP_OBSEQ_CONTEXT
 };
 
 
@@ -152,7 +152,6 @@ static PyObject *Scene_getTimeLine( BPy_Scene * self );
 
 
 /*internal*/
-static void Scene_dealloc( BPy_Scene * self );
 static int Scene_compare( BPy_Scene * a, BPy_Scene * b );
 static PyObject *Scene_repr( BPy_Scene * self );
 
@@ -459,7 +458,7 @@ PyTypeObject Scene_Type = {
        sizeof( BPy_Scene ),    /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Scene_dealloc,   /* tp_dealloc */
+       NULL,                                           /* tp_dealloc */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -553,13 +552,6 @@ PyObject *Scene_Init( void )
        return submodule;
 }
 
-/*-----------------------Scene module internal callbacks------------------
-  -----------------------dealloc------------------------------------------*/
-static void Scene_dealloc( BPy_Scene * self )
-{
-       PyObject_DEL( self );
-}
-
 /*-----------------------compare----------------------------------------*/
 static int Scene_compare( BPy_Scene * a, BPy_Scene * b )
 {
index cb6d6394a28b03e0f4d462027fab28b3e2d70e28..ed366429ce3206425c5128a6f870fc7240bbd683 100644 (file)
@@ -89,7 +89,6 @@ struct PyMethodDef M_Sound_methods[] = {
 /*****************************************************************************/
 /* Python Sound_Type callback function prototypes:                     */
 /*****************************************************************************/
-static void Sound_dealloc( BPy_Sound * self );
 static int Sound_compare( BPy_Sound * a, BPy_Sound * b );
 static PyObject *Sound_repr( BPy_Sound * self );
 
@@ -319,15 +318,6 @@ PyObject *Sound_Init( void )
 /*** The Sound PyType ***/
 /************************/
 
-/*****************************************************************************/
-/* Function:           Sound_dealloc                            */
-/* Description: This is a callback function for the BPy_Sound type. It is  */
-/*             the destructor function.                                */
-/*****************************************************************************/
-static void Sound_dealloc( BPy_Sound * self )
-{
-       PyObject_DEL( self );
-}
 
 /*****************************************************************************/
 /* Function:   Sound_CreatePyObject                                    */
@@ -558,8 +548,8 @@ PyTypeObject Sound_Type = {
        sizeof( BPy_Sound ),    /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Sound_dealloc,   /* tp_dealloc */
-       0,                      /* tp_print */
+       NULL,   /* tp_dealloc */
+       0,              /* tp_print */
        NULL,   /* tp_getattr */
        NULL,   /* tp_setattr */
        ( cmpfunc ) Sound_compare,      /* tp_compare */
index 981c1b1dbac0bc7557855acd8a97cf26e57cee40..895e3e031ba8e218bc547c9955425c1f86992690 100644 (file)
@@ -716,11 +716,6 @@ static PyGetSetDef BPy_SurfNurb_getseters[] = {
        {NULL,NULL,NULL,NULL,NULL}  /* Sentinel */
 };
 
-void SurfNurb_dealloc( BPy_SurfNurb * self )
-{
-       PyObject_DEL( self );
-}
-
 /*
  * compare
  * in this case, we consider two SurfNurbs equal, if they point to the same
@@ -752,7 +747,7 @@ PyTypeObject SurfNurb_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) SurfNurb_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index 210cb84f217f6da33e0d5236f8360cf28f281a89..23db85f7b360b6a5cc770ced231f0fd04574808a 100644 (file)
@@ -124,7 +124,6 @@ static PyMethodDef BPy_Text_methods[] = {
 /*****************************************************************************/
 /* Python Text_Type callback function prototypes:                            */
 /*****************************************************************************/
-static void Text_dealloc( BPy_Text * self );
 static int Text_compare( BPy_Text * a, BPy_Text * b );
 static PyObject *Text_repr( BPy_Text * self );
 
@@ -459,16 +458,6 @@ static PyObject *Text_asLines( BPy_Text * self )
        return list;
 }
 
-/*****************************************************************************/
-/* Function:    Text_dealloc                                                 */
-/* Description: This is a callback function for the BPy_Text type. It is     */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-static void Text_dealloc( BPy_Text * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    Text_compare                                                 */
 /* Description: This is a callback function for the BPy_Text type. It        */
@@ -528,7 +517,7 @@ PyTypeObject Text_Type = {
        sizeof( BPy_Text ),     /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Text_dealloc,    /* tp_dealloc */
+       NULL,   /* tp_dealloc */
        NULL,                   /* tp_print */
        NULL,   /* tp_getattr */
        NULL,   /* tp_setattr */
index 028005e128bad57bce901cf0ab7ae1fbbb7b2687..cf825bd242ccb07238c3c003af76b344202d65c7 100644 (file)
@@ -91,7 +91,6 @@ struct PyMethodDef M_Text3d_methods[] = {
 /* Python Text3d_Type callback function prototypes:                          */
 /*****************************************************************************/
 /* int Text3dPrint (BPy_Text3d *msh, FILE *fp, int flags); */
-static void Text3dDeAlloc( BPy_Text3d * self );
 
 
 static PyObject *Text3d_repr( BPy_Text3d * self );
@@ -359,10 +358,10 @@ PyTypeObject Text3d_Type = {
        sizeof( BPy_Text3d ),   /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Text3dDeAlloc,   /* tp_dealloc */
+       NULL,                   /* tp_dealloc */
        NULL,                   /* tp_print */
-       NULL,   /* tp_getattr */
-       NULL,   /* tp_setattr */
+       NULL,                   /* tp_getattr */
+       NULL,                   /* tp_setattr */
        ( cmpfunc ) Text3d_compare,                     /* tp_compare */
        ( reprfunc ) Text3d_repr,       /* tp_repr */
        /* Method suites for standard classes */
@@ -599,11 +598,6 @@ PyObject *Text3d_Init( void )
        return ( submodule );
 }
 
-static void Text3dDeAlloc( BPy_Text3d * self )
-{
-       PyObject_DEL( self );
-}
-
 /****************************************************************************
  * Function:    Text3d_repr                                                   
  * Description: Callback function for the BPy_Text3d type to It      
index 9e657dec109f5f707aa4b8f5ff64300387434be6..8d980ddf988f79000171b859d59bbeef8eae12a0 100644 (file)
@@ -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(  );
index 0c45c6d40a619c0eff6a759298e3b2b6989b9142..c16d4c3fc97ea1aafa490382560510ec7eb2bcf3 100644 (file)
@@ -117,7 +117,6 @@ static PyObject *M_World_GetCurrent( PyObject * self );
 /*****************************************************************************/
 /* Python World_Type callback function prototypes:                     */
 /*****************************************************************************/
-static void World_DeAlloc( BPy_World * self );
 //static int World_Print (BPy_World *self, FILE *fp, int flags);
 static int World_Compare( BPy_World * a, BPy_World * b );
 static PyObject *World_Repr( BPy_World * self );
@@ -267,8 +266,8 @@ PyTypeObject World_Type = {
        sizeof( BPy_World ),    /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) World_DeAlloc,   /* tp_dealloc */
-       0,                      /* tp_print */
+       NULL,   /* tp_dealloc */
+       0,              /* tp_print */
        NULL,   /* tp_getattr */
        NULL,   /* tp_setattr */
        ( cmpfunc ) World_Compare,      /* tp_compare */
@@ -908,18 +907,6 @@ static PyObject *World_copy( BPy_World * self )
        return World_CreatePyObject(world);
 }
 
-
-/*@{*/
-
-/**
- * \brief The World PyType destructor
- */
-
-static void World_DeAlloc( BPy_World * self )
-{
-       PyObject_DEL( self );
-}
-
 /**
  * \brief The World PyType compare function
  *
index 768970881661b21cb0132b4e6c0c1ef3f630799c..35ff546d0d5e607be4514afef3cd7975ac178625 100644 (file)
@@ -39,7 +39,6 @@
 /*****************************************************************************/
 /* Python charRGBA_Type callback function prototypes:                    */
 /*****************************************************************************/
-static void charRGBA_dealloc( BPy_charRGBA * self );
 static PyObject *charRGBA_getAttr( BPy_charRGBA * self, char *name );
 static int charRGBA_setAttr( BPy_charRGBA * self, char *name, PyObject * v );
 static PyObject *charRGBA_repr( BPy_charRGBA * self );
@@ -88,7 +87,7 @@ PyTypeObject charRGBA_Type = {
        sizeof( BPy_charRGBA ), /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) charRGBA_dealloc,        /* tp_dealloc */
+       NULL,           /* tp_dealloc */
        0,                      /* tp_print */
        ( getattrfunc ) charRGBA_getAttr,       /* tp_getattr */
        ( setattrfunc ) charRGBA_setAttr,       /* tp_setattr */
@@ -176,16 +175,6 @@ PyObject *charRGBA_setCol( BPy_charRGBA * self, PyObject * args )
        return EXPP_incr_ret( Py_None );
 }
 
-/*****************************************************************************/
-/* Function:   charRGBA_dealloc                                         */
-/* Description: This is a callback function for the BPy_charRGBA type. It is */
-/*             the destructor function.                                 */
-/*****************************************************************************/
-static void charRGBA_dealloc( BPy_charRGBA * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:   charRGBA_getAttr                                         */
 /* Description: This is a callback function for the BPy_charRGBA type. It is */
index c498601222f3b5b4ee4cc13a8deddef9b284e33c..8536d641042565c6a65b2d7d99037b87b7e03e2c 100644 (file)
@@ -40,7 +40,6 @@
 /*****************************************************************************/
 /* Python rgbTuple_Type callback function prototypes:                        */
 /*****************************************************************************/
-static void rgbTuple_dealloc( BPy_rgbTuple * self );
 static PyObject *rgbTuple_getAttr( BPy_rgbTuple * self, char *name );
 static int rgbTuple_setAttr( BPy_rgbTuple * self, char *name, PyObject * v );
 static PyObject *rgbTuple_repr( BPy_rgbTuple * self );
@@ -90,7 +89,7 @@ PyTypeObject rgbTuple_Type = {
        sizeof( BPy_rgbTuple ), /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) rgbTuple_dealloc,        /* tp_dealloc */
+       NULL,           /* tp_dealloc */
        0,                      /* tp_print */
        ( getattrfunc ) rgbTuple_getAttr,       /* tp_getattr */
        ( setattrfunc ) rgbTuple_setAttr,       /* tp_setattr */
@@ -184,16 +183,6 @@ int rgbTuple_setCol( BPy_rgbTuple * self, PyObject * args )
        return 0;
 }
 
-/*****************************************************************************/
-/* Function:    rgbTuple_dealloc                                             */
-/* Description: This is a callback function for the BPy_rgbTuple type. It is */
-/*              the destructor function.                                     */
-/*****************************************************************************/
-static void rgbTuple_dealloc( BPy_rgbTuple * self )
-{
-       PyObject_DEL( self );
-}
-
 /*****************************************************************************/
 /* Function:    rgbTuple_getAttr                                             */
 /* Description: This is a callback function for the BPy_rgbTuple type. It is */
index 080f99cd4f953e3cad32ea373d80c9cdd48f142d..ca76869a6158cf7627f77e68d9a81b5e5a64e08c 100644 (file)
@@ -105,7 +105,6 @@ static PyObject *Radio_subdividePatches( BPy_Radio * self );
 static PyObject *Radio_subdivideElems( BPy_Radio * self );
 static PyObject *Radio_removeDoubles( BPy_Radio * self );
 
-static void Radio_dealloc( BPy_Radio * self );
 static PyObject *Radio_repr( BPy_Radio * self );
 
 static PyObject *EXPP_create_ret_PyInt( int value )
@@ -630,7 +629,7 @@ static PyTypeObject Radio_Type = {
        "Blender Radiosity",    /*tp_name */
        sizeof( BPy_Radio ),    /*tp_basicsize */
        0,                      /*tp_itemsize */
-       ( destructor ) Radio_dealloc,   /*tp_dealloc */
+       NULL,           /*tp_dealloc */
        0,                      /*tp_print */
        0,                      /*tp_getattr */
        0,                      /*tp_setattr */
@@ -667,11 +666,6 @@ static PyTypeObject Radio_Type = {
        0, 0, 0, 0, 0, 0, 0, 0, /* up to tp_del, so we don't get a warning */
 };
 
-static void Radio_dealloc( BPy_Radio * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *Radio_repr( BPy_Radio * self )
 {
        if( self->radio )
index 2034a00788fa7a9fa5e28d63e0a5c26e9e9fcdbf..541937304e25796979155a712abbaa059c243f29 100644 (file)
@@ -130,11 +130,6 @@ static PyObject *RenderData_Render( BPy_RenderData * self );
 
 /* BPy_RenderData Internal Protocols */
 
-static void RenderData_dealloc( BPy_RenderData * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *RenderData_repr( BPy_RenderData * self )
 {
        if( self->renderContext )
@@ -2473,7 +2468,7 @@ PyTypeObject RenderData_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) RenderData_dealloc,/* destructor tp_dealloc; */
+       NULL,                                           /* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
index f6cad95b8ab36b7564ba55d0c81bd06592841d6e..645d52370ea98a97d7fcc363143424759f28a2b6 100644 (file)
@@ -293,8 +293,6 @@ static PyObject *Sequence_copy( BPy_Sequence * self )
 /*****************************************************************************/
 /* PythonTypeObject callback function prototypes                        */
 /*****************************************************************************/
-static void Sequence_dealloc( BPy_Sequence * obj );
-static void SceneSeq_dealloc( BPy_Sequence * obj );
 static PyObject *Sequence_repr( BPy_Sequence * obj );
 static PyObject *SceneSeq_repr( BPy_SceneSeq * obj );
 static int Sequence_compare( BPy_Sequence * a, BPy_Sequence * b );
@@ -791,7 +789,7 @@ PyTypeObject Sequence_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) Sequence_dealloc,/* destructor tp_dealloc; */
+       NULL,/* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -878,7 +876,7 @@ PyTypeObject SceneSeq_Type = {
 
        /* Methods to implement standard operations */
 
-       ( destructor ) SceneSeq_dealloc,/* destructor tp_dealloc; */
+       NULL,/* destructor tp_dealloc; */
        NULL,                       /* printfunc tp_print; */
        NULL,                       /* getattrfunc tp_getattr; */
        NULL,                       /* setattrfunc tp_setattr; */
@@ -1046,21 +1044,6 @@ struct Sequence *Sequence_FromPyObject( PyObject * py_seq )
        return ( blen_seq->seq );
 }
 
-/*****************************************************************************/
-/* Function:   Sequence_dealloc                                                 */
-/* Description: This is a callback function for the BlenObject type. It is  */
-/*             the destructor function.                                 */
-/*****************************************************************************/
-static void Sequence_dealloc( BPy_Sequence * seq )
-{
-       PyObject_DEL( seq );
-}
-static void SceneSeq_dealloc( BPy_Sequence * seq )
-{
-       PyObject_DEL( seq );
-}
-
-
 /*****************************************************************************/
 /* Function:   Sequence_compare                                                 */
 /* Description: This is a callback function for the BPy_Sequence type. It       */
index 07dca6e7cdba5c01661144901b8d9d2a49f7bf33..5c00b9f89259bb6714db7dc0e9a60e6c0b4e31c4 100644 (file)
@@ -58,10 +58,6 @@ static PyObject *TimeLine_setNameMarker (BPy_TimeLine *self, PyObject *args);
 static PyObject *TimeLine_getNameMarker (BPy_TimeLine *self, PyObject *args);
 static PyObject *TimeLine_getFramesMarked (BPy_TimeLine *self, PyObject *args);
 
-static void TimeLine_dealloc (PyObject *self) {
-       PyObject_DEL (self);
-}
-
 static PyObject *TimeLine_repr (BPy_TimeLine *self) {
 
        return PyString_FromFormat ("[TimeLine]");
@@ -118,7 +114,7 @@ PyTypeObject TimeLine_Type = {
        sizeof (BPy_TimeLine),  /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       (destructor) TimeLine_dealloc,  /* tp_dealloc */
+       NULL,   /* tp_dealloc */
        (printfunc) 0,  /* tp_print */
        (getattrfunc) TimeLine_getattr, /* tp_getattr */
        (setattrfunc) TimeLine_setattr, /* tp_setattr */
index 237cf1d0daed0762ebb446a8dae0d15790a77566..a86f80f7e5f957d7e7780c919887d81e81501468 100644 (file)
@@ -94,7 +94,6 @@ struct PyMethodDef M_Theme_methods[] = {
        {NULL, NULL, 0, NULL}
 };
 
-static void ThemeSpace_dealloc( BPy_ThemeSpace * self );
 static int ThemeSpace_compare( BPy_ThemeSpace * a, BPy_ThemeSpace * b );
 static PyObject *ThemeSpace_repr( BPy_ThemeSpace * self );
 static PyObject *ThemeSpace_getAttr( BPy_ThemeSpace * self, char *name );
@@ -111,7 +110,7 @@ PyTypeObject ThemeSpace_Type = {
        sizeof( BPy_ThemeSpace ),       /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) ThemeSpace_dealloc,      /* tp_dealloc */
+       0,                      /* tp_dealloc */
        0,                      /* tp_print */
        ( getattrfunc ) ThemeSpace_getAttr,     /* tp_getattr */
        ( setattrfunc ) ThemeSpace_setAttr,     /* tp_setattr */
@@ -129,11 +128,6 @@ PyTypeObject ThemeSpace_Type = {
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 };
 
-static void ThemeSpace_dealloc( BPy_ThemeSpace * self )
-{
-       PyObject_DEL( self );
-}
-
 #define ELSEIF_TSP_RGBA(attr)\
        else if (!strcmp(name, #attr))\
                attrib = charRGBA_New(&tsp->attr[0]);
@@ -336,7 +330,6 @@ static PyObject *ThemeSpace_repr( BPy_ThemeSpace * self )
                                    self->theme->name );
 }
 
-static void ThemeUI_dealloc( BPy_ThemeUI * self );
 static int ThemeUI_compare( BPy_ThemeUI * a, BPy_ThemeUI * b );
 static PyObject *ThemeUI_repr( BPy_ThemeUI * self );
 static PyObject *ThemeUI_getAttr( BPy_ThemeUI * self, char *name );
@@ -352,7 +345,7 @@ PyTypeObject ThemeUI_Type = {
        sizeof( BPy_ThemeUI ),  /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) ThemeUI_dealloc, /* tp_dealloc */
+       0,                      /* tp_dealloc */
        0,                      /* tp_print */
        ( getattrfunc ) ThemeUI_getAttr,        /* tp_getattr */
        ( setattrfunc ) ThemeUI_setAttr,        /* tp_setattr */
@@ -370,11 +363,6 @@ PyTypeObject ThemeUI_Type = {
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 };
 
-static void ThemeUI_dealloc( BPy_ThemeUI * self )
-{
-       PyObject_DEL( self );
-}
-
 #define ELSEIF_TUI_RGBA(attr)\
        else if (!strcmp(name, #attr))\
                attrib = charRGBA_New(&tui->attr[0]);
@@ -512,7 +500,6 @@ static PyObject *ThemeUI_repr( BPy_ThemeUI * self )
                                    self->theme->name );
 }
 
-static void Theme_dealloc( BPy_Theme * self );
 static int Theme_compare( BPy_Theme * a, BPy_Theme * b );
 static PyObject *Theme_getAttr( BPy_Theme * self, char *name );
 static PyObject *Theme_repr( BPy_Theme * self );
@@ -542,7 +529,7 @@ PyTypeObject Theme_Type = {
        sizeof( BPy_Theme ),    /* tp_basicsize */
        0,                      /* tp_itemsize */
        /* methods */
-       ( destructor ) Theme_dealloc,   /* tp_dealloc */
+       0,                      /* tp_dealloc */
        0,                      /* tp_print */
        ( getattrfunc ) Theme_getAttr,  /* tp_getattr */
        0,                      //(setattrfunc) Theme_setAttr,        /* tp_setattr */
@@ -800,11 +787,6 @@ PyObject *Theme_Init( void )
        return submodule;
 }
 
-static void Theme_dealloc( BPy_Theme * self )
-{
-       PyObject_DEL( self );
-}
-
 static PyObject *Theme_getAttr( BPy_Theme * self, char *name )
 {
        PyObject *attr = Py_None;