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/Constraint.c
parentee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (diff)
removed unneeded dealloc functions
Diffstat (limited to 'source/blender/python/api2_2x/Constraint.c')
-rw-r--r--source/blender/python/api2_2x/Constraint.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/python/api2_2x/Constraint.c b/source/blender/python/api2_2x/Constraint.c
index d67557084a1..1fb202be6af 100644
--- a/source/blender/python/api2_2x/Constraint.c
+++ b/source/blender/python/api2_2x/Constraint.c
@@ -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; */
@@ -1419,17 +1418,6 @@ static int Constraint_setData( BPy_Constraint * self, PyObject * key,
}
/*****************************************************************************/
-/* 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. */
/*****************************************************************************/