Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-03-15 04:47:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-15 04:47:53 +0300
commit52e43441d123d8ec74dbdf0de6ab97fc30904184 (patch)
tree05b05f7e800bd8402392530c457c3e438341907b /source/blender/python/api2_2x/Image.c
parentee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (diff)
removed unneeded dealloc functions
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r--source/blender/python/api2_2x/Image.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c
index a030f635010..5aa8def8abb 100644
--- a/source/blender/python/api2_2x/Image.c
+++ b/source/blender/python/api2_2x/Image.c
@@ -749,21 +749,10 @@ 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 */
/* Blender image structure. */
@@ -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 */