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
path: root/source
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-22 07:04:52 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-22 07:04:52 +0400
commit025feb240d6aad7419dd415fc3230f04b9e2aecf (patch)
treef7ebfb68e157a0d6bb64de158ee16d35c3e280ce /source
parenta4a7341aef2e772b7a233ade5dbccfbb959fd8e4 (diff)
Code clean-up: removed empty PyMethodDef.
Diffstat (limited to 'source')
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp7
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp7
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp7
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp7
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp7
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp8
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp6
18 files changed, 19 insertions, 96 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
index 441b7be3664..b6437db6190 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
@@ -144,10 +144,6 @@ static PyObject * UnaryFunction0DDouble___call__(BPy_UnaryFunction0DDouble *self
return PyFloat_FromDouble(self->uf0D_double->result);
}
-static PyMethodDef BPy_UnaryFunction0DDouble_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DDouble type definition ------------------------------*/
PyTypeObject UnaryFunction0DDouble_Type = {
@@ -178,7 +174,7 @@ PyTypeObject UnaryFunction0DDouble_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DDouble_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp
index be33fcd9932..00a3df25645 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp
@@ -88,10 +88,6 @@ static PyObject * UnaryFunction0DEdgeNature___call__(BPy_UnaryFunction0DEdgeNatu
return BPy_Nature_from_Nature(self->uf0D_edgenature->result);
}
-static PyMethodDef BPy_UnaryFunction0DEdgeNature_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DEdgeNature type definition ------------------------------*/
PyTypeObject UnaryFunction0DEdgeNature_Type = {
@@ -122,7 +118,7 @@ PyTypeObject UnaryFunction0DEdgeNature_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DEdgeNature_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp
index d4858fcf250..cedd651d927 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp
@@ -118,10 +118,6 @@ static PyObject * UnaryFunction0DFloat___call__(BPy_UnaryFunction0DFloat *self,
return PyFloat_FromDouble(self->uf0D_float->result);
}
-static PyMethodDef BPy_UnaryFunction0DFloat_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DFloat type definition ------------------------------*/
PyTypeObject UnaryFunction0DFloat_Type = {
@@ -152,7 +148,7 @@ PyTypeObject UnaryFunction0DFloat_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DFloat_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp
index 6c2261afe8b..a1e9c2988e4 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp
@@ -88,10 +88,6 @@ static PyObject * UnaryFunction0DId___call__(BPy_UnaryFunction0DId *self, PyObje
return BPy_Id_from_Id(self->uf0D_id->result);
}
-static PyMethodDef BPy_UnaryFunction0DId_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DId type definition ------------------------------*/
PyTypeObject UnaryFunction0DId_Type = {
@@ -122,7 +118,7 @@ PyTypeObject UnaryFunction0DId_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DId_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp
index 8a612658d13..4f40f081470 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp
@@ -61,7 +61,6 @@ static void UnaryFunction0DMaterial___dealloc__(BPy_UnaryFunction0DMaterial* sel
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
}
-
static PyObject * UnaryFunction0DMaterial___repr__(BPy_UnaryFunction0DMaterial* self)
{
return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->uf0D_material);
@@ -89,10 +88,6 @@ static PyObject * UnaryFunction0DMaterial___call__(BPy_UnaryFunction0DMaterial *
return BPy_FrsMaterial_from_FrsMaterial(self->uf0D_material->result);
}
-static PyMethodDef BPy_UnaryFunction0DMaterial_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DMaterial type definition ------------------------------*/
PyTypeObject UnaryFunction0DMaterial_Type = {
@@ -123,7 +118,7 @@ PyTypeObject UnaryFunction0DMaterial_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DMaterial_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
index 318e6007087..6bda7831c8d 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
@@ -88,10 +88,6 @@ static PyObject * UnaryFunction0DUnsigned___call__(BPy_UnaryFunction0DUnsigned *
return PyLong_FromLong(self->uf0D_unsigned->result);
}
-static PyMethodDef BPy_UnaryFunction0DUnsigned_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DUnsigned type definition ------------------------------*/
PyTypeObject UnaryFunction0DUnsigned_Type = {
@@ -122,7 +118,7 @@ PyTypeObject UnaryFunction0DUnsigned_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DUnsigned_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp
index 86df60a24b2..f3a7519950c 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp
@@ -94,10 +94,6 @@ static PyObject * UnaryFunction0DVec2f___call__(BPy_UnaryFunction0DVec2f *self,
return Vector_from_Vec2f(self->uf0D_vec2f->result);
}
-static PyMethodDef BPy_UnaryFunction0DVec2f_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DVec2f type definition ------------------------------*/
PyTypeObject UnaryFunction0DVec2f_Type = {
@@ -128,7 +124,7 @@ PyTypeObject UnaryFunction0DVec2f_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DVec2f_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp
index 3474860a067..a4fd4f64a4b 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp
@@ -88,10 +88,6 @@ static PyObject * UnaryFunction0DVec3f___call__(BPy_UnaryFunction0DVec3f *self,
return Vector_from_Vec3f(self->uf0D_vec3f->result);
}
-static PyMethodDef BPy_UnaryFunction0DVec3f_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DVec3f type definition ------------------------------*/
PyTypeObject UnaryFunction0DVec3f_Type = {
@@ -122,7 +118,7 @@ PyTypeObject UnaryFunction0DVec3f_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DVec3f_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
index 01c884f8de2..fc71cb73602 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
@@ -102,10 +102,6 @@ static PyObject * UnaryFunction0DVectorViewShape___call__(BPy_UnaryFunction0DVec
return list;
}
-static PyMethodDef BPy_UnaryFunction0DVectorViewShape_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DVectorViewShape type definition ------------------------------*/
PyTypeObject UnaryFunction0DVectorViewShape_Type = {
@@ -136,7 +132,7 @@ PyTypeObject UnaryFunction0DVectorViewShape_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DVectorViewShape_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp
index 96bb4c65701..b27de41109c 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp
@@ -94,10 +94,6 @@ static PyObject * UnaryFunction0DViewShape___call__(BPy_UnaryFunction0DViewShape
return BPy_ViewShape_from_ViewShape(*(self->uf0D_viewshape->result));
}
-static PyMethodDef BPy_UnaryFunction0DViewShape_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*-----------------------BPy_UnaryFunction0DViewShape type definition ------------------------------*/
PyTypeObject UnaryFunction0DViewShape_Type = {
@@ -128,7 +124,7 @@ PyTypeObject UnaryFunction0DViewShape_Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
- BPy_UnaryFunction0DViewShape_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
&UnaryFunction0D_Type, /* tp_base */
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 */