Cleanup: replace UNUSED macro with commented args in C++ code

This is the conventional way of dealing with unused arguments in C++,
since it works on all compilers.

Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
This commit is contained in:
Hans Goudey
2022-10-03 17:37:25 -05:00
parent ed7f5713f8
commit 97746129d5
601 changed files with 2305 additions and 2443 deletions

View File

@@ -234,7 +234,7 @@ PyDoc_STRVAR(Interface1D_name_doc,
"\n"
":type: str");
static PyObject *Interface1D_name_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject *Interface1D_name_get(BPy_Interface1D *self, void * /*closure*/)
{
return PyUnicode_FromString(Py_TYPE(self)->tp_name);
}
@@ -244,7 +244,7 @@ PyDoc_STRVAR(Interface1D_id_doc,
"\n"
":type: :class:`Id`");
static PyObject *Interface1D_id_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject *Interface1D_id_get(BPy_Interface1D *self, void * /*closure*/)
{
Id id(self->if1D->getId());
if (PyErr_Occurred()) {
@@ -258,7 +258,7 @@ PyDoc_STRVAR(Interface1D_nature_doc,
"\n"
":type: :class:`Nature`");
static PyObject *Interface1D_nature_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject *Interface1D_nature_get(BPy_Interface1D *self, void * /*closure*/)
{
Nature::VertexNature nature = self->if1D->getNature();
if (PyErr_Occurred()) {
@@ -272,7 +272,7 @@ PyDoc_STRVAR(Interface1D_length_2d_doc,
"\n"
":type: float");
static PyObject *Interface1D_length_2d_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject *Interface1D_length_2d_get(BPy_Interface1D *self, void * /*closure*/)
{
real length = self->if1D->getLength2D();
if (PyErr_Occurred()) {
@@ -286,14 +286,12 @@ PyDoc_STRVAR(Interface1D_time_stamp_doc,
"\n"
":type: int");
static PyObject *Interface1D_time_stamp_get(BPy_Interface1D *self, void *UNUSED(closure))
static PyObject *Interface1D_time_stamp_get(BPy_Interface1D *self, void * /*closure*/)
{
return PyLong_FromLong(self->if1D->getTimeStamp());
}
static int Interface1D_time_stamp_set(BPy_Interface1D *self,
PyObject *value,
void *UNUSED(closure))
static int Interface1D_time_stamp_set(BPy_Interface1D *self, PyObject *value, void * /*closure*/)
{
int timestamp;