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/Key.c
parentee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (diff)
removed unneeded dealloc functions
Diffstat (limited to 'source/blender/python/api2_2x/Key.c')
-rw-r--r--source/blender/python/api2_2x/Key.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/source/blender/python/api2_2x/Key.c b/source/blender/python/api2_2x/Key.c
index f867545ce16..27a92e8c17e 100644
--- a/source/blender/python/api2_2x/Key.c
+++ b/source/blender/python/api2_2x/Key.c
@@ -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 );