Code clean-up: removed empty PyMethodDef.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user