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

@@ -177,7 +177,7 @@ PyDoc_STRVAR(Iterator_name_doc,
"\n"
":type: str");
static PyObject *Iterator_name_get(BPy_Iterator *self, void *UNUSED(closure))
static PyObject *Iterator_name_get(BPy_Iterator *self, void * /*closure*/)
{
return PyUnicode_FromString(Py_TYPE(self)->tp_name);
}
@@ -187,7 +187,7 @@ PyDoc_STRVAR(Iterator_is_begin_doc,
"\n"
":type: bool");
static PyObject *Iterator_is_begin_get(BPy_Iterator *self, void *UNUSED(closure))
static PyObject *Iterator_is_begin_get(BPy_Iterator *self, void * /*closure*/)
{
return PyBool_from_bool(self->it->isBegin());
}
@@ -197,7 +197,7 @@ PyDoc_STRVAR(Iterator_is_end_doc,
"\n"
":type: bool");
static PyObject *Iterator_is_end_get(BPy_Iterator *self, void *UNUSED(closure))
static PyObject *Iterator_is_end_get(BPy_Iterator *self, void * /*closure*/)
{
return PyBool_from_bool(self->it->isEnd());
}