diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-22 07:04:52 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-22 07:04:52 +0400 |
commit | 025feb240d6aad7419dd415fc3230f04b9e2aecf (patch) | |
tree | f7ebfb68e157a0d6bb64de158ee16d35c3e280ce /source/blender/freestyle/intern/python/UnaryFunction1D | |
parent | a4a7341aef2e772b7a233ade5dbccfbb959fd8e4 (diff) |
Code clean-up: removed empty PyMethodDef.
Diffstat (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D')
8 files changed, 9 insertions, 45 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp index 583cfd8a092..80e6620769e 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp @@ -184,10 +184,6 @@ static PyObject * UnaryFunction1DDouble___call__(BPy_UnaryFunction1DDouble *self return PyFloat_FromDouble(self->uf1D_double->result); } -static PyMethodDef BPy_UnaryFunction1DDouble_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DDouble get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -245,7 +241,7 @@ PyTypeObject UnaryFunction1DDouble_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DDouble_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DDouble_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp index 9b9fd384395..8a94417a1ff 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp @@ -103,13 +103,8 @@ static PyObject * UnaryFunction1DEdgeNature___call__(BPy_UnaryFunction1DEdgeNatu return NULL; } return BPy_Nature_from_Nature(self->uf1D_edgenature->result); - } -static PyMethodDef BPy_UnaryFunction1DEdgeNature_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DEdgeNature get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -167,7 +162,7 @@ PyTypeObject UnaryFunction1DEdgeNature_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DEdgeNature_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DEdgeNature_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp index 3cbb45da28c..ab41429b476 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp @@ -96,13 +96,8 @@ static PyObject * UnaryFunction1DFloat___call__(BPy_UnaryFunction1DFloat *self, return NULL; } return PyFloat_FromDouble(self->uf1D_float->result); - } -static PyMethodDef BPy_UnaryFunction1DFloat_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DFloat get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -160,7 +155,7 @@ PyTypeObject UnaryFunction1DFloat_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DFloat_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DFloat_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp index 8cce3cb8bbb..edf77ef1b96 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp @@ -103,13 +103,8 @@ static PyObject * UnaryFunction1DUnsigned___call__(BPy_UnaryFunction1DUnsigned * return NULL; } return PyLong_FromLong(self->uf1D_unsigned->result); - } -static PyMethodDef BPy_UnaryFunction1DUnsigned_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DUnsigned get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -167,7 +162,7 @@ PyTypeObject UnaryFunction1DUnsigned_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DUnsigned_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DUnsigned_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp index d6d9439b444..78306c3d213 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp @@ -109,13 +109,8 @@ static PyObject * UnaryFunction1DVec2f___call__(BPy_UnaryFunction1DVec2f *self, return NULL; } return Vector_from_Vec2f(self->uf1D_vec2f->result); - } -static PyMethodDef BPy_UnaryFunction1DVec2f_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DVec2f get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -173,7 +168,7 @@ PyTypeObject UnaryFunction1DVec2f_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DVec2f_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DVec2f_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp index 3fa1a24f004..1e2dbeeff14 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp @@ -70,6 +70,7 @@ static int UnaryFunction1DVec3f___init__(BPy_UnaryFunction1DVec3f* self, PyObjec return 0; } + static void UnaryFunction1DVec3f___dealloc__(BPy_UnaryFunction1DVec3f* self) { if (self->uf1D_vec3f) @@ -103,13 +104,8 @@ static PyObject * UnaryFunction1DVec3f___call__(BPy_UnaryFunction1DVec3f *self, return NULL; } return Vector_from_Vec3f(self->uf1D_vec3f->result); - } -static PyMethodDef BPy_UnaryFunction1DVec3f_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DVec3f get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -167,7 +163,7 @@ PyTypeObject UnaryFunction1DVec3f_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DVec3f_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DVec3f_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp index 2f4d23435b8..1872afb439c 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp @@ -131,10 +131,6 @@ static PyObject * UnaryFunction1DVectorViewShape___call__(BPy_UnaryFunction1DVec return list; } -static PyMethodDef BPy_UnaryFunction1DVectorViewShape_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DVectorViewShape get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -192,7 +188,7 @@ PyTypeObject UnaryFunction1DVectorViewShape_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DVectorViewShape_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DVectorViewShape_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp index e6f794d1e43..c6c04526753 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp @@ -118,10 +118,6 @@ static PyObject * UnaryFunction1DVoid___call__(BPy_UnaryFunction1DVoid *self, Py Py_RETURN_NONE; } -static PyMethodDef BPy_UnaryFunction1DVoid_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------UnaryFunction1DVoid get/setters ----------------------------*/ PyDoc_STRVAR(integration_type_doc, @@ -179,7 +175,7 @@ PyTypeObject UnaryFunction1DVoid_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_UnaryFunction1DVoid_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_UnaryFunction1DVoid_getseters, /* tp_getset */ &UnaryFunction1D_Type, /* tp_base */ |