[Bf-blender-cvs] [3224d32] mathutils_bvhtree: mathutils_bvhtree: Removed unnecessary dealloc function for bpy types.

Lukas Tönne noreply at git.blender.org
Wed Apr 29 11:30:52 CEST 2015


Commit: 3224d32c71b4d6a795f2a26ad146ed038a4d8d3b
Author: Lukas Tönne
Date:   Wed Apr 29 09:37:46 2015 +0200
Branches: mathutils_bvhtree
https://developer.blender.org/rB3224d32c71b4d6a795f2a26ad146ed038a4d8d3b

mathutils_bvhtree: Removed unnecessary dealloc function for bpy types.

===================================================================

M	source/blender/python/mathutils/mathutils_bvhtree.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c
index 6ee49e8..656bc9b 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -120,11 +120,6 @@ static int PyBVHTree__tp_init(PyBVHTree *UNUSED(self), PyObject *UNUSED(args), P
 	return 0;
 }
 
-static void PyBVHTree__tp_dealloc(PyBVHTree *self)
-{
-	Py_TYPE(self)->tp_free((PyObject *)self);
-}
-
 static PyMethodDef PyBVHTree_methods[] = {
 	{NULL, NULL, 0, NULL}
 };
@@ -138,7 +133,7 @@ PyTypeObject PyBVHTree_Type = {
 	sizeof(PyBVHTree),                           /* tp_basicsize */
 	0,                                           /* tp_itemsize */
 	/* methods */
-	(destructor)PyBVHTree__tp_dealloc,           /* tp_dealloc */
+	NULL,                                        /* tp_dealloc */
 	NULL,                                        /* tp_print */
 	NULL,                                        /* tp_getattr */
 	NULL,                                        /* tp_setattr */




More information about the Bf-blender-cvs mailing list