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:
@@ -163,7 +163,7 @@ PyDoc_STRVAR(ViewShape_sshape_doc,
|
||||
"\n"
|
||||
":type: :class:`SShape`");
|
||||
|
||||
static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
SShape *ss = self->vs->sshape();
|
||||
if (!ss) {
|
||||
@@ -172,7 +172,7 @@ static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void *UNUSED(closure)
|
||||
return BPy_SShape_from_SShape(*ss);
|
||||
}
|
||||
|
||||
static int ViewShape_sshape_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure))
|
||||
static int ViewShape_sshape_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/)
|
||||
{
|
||||
if (!BPy_SShape_Check(value)) {
|
||||
PyErr_SetString(PyExc_TypeError, "value must be an SShape");
|
||||
@@ -195,7 +195,7 @@ PyDoc_STRVAR(ViewShape_vertices_doc,
|
||||
"\n"
|
||||
":type: List of :class:`ViewVertex` objects");
|
||||
|
||||
static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
vector<ViewVertex *> vertices = self->vs->vertices();
|
||||
vector<ViewVertex *>::iterator it;
|
||||
@@ -208,7 +208,7 @@ static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void *UNUSED(closur
|
||||
return py_vertices;
|
||||
}
|
||||
|
||||
static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure))
|
||||
static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/)
|
||||
{
|
||||
PyObject *item;
|
||||
vector<ViewVertex *> v;
|
||||
@@ -238,7 +238,7 @@ PyDoc_STRVAR(ViewShape_edges_doc,
|
||||
"\n"
|
||||
":type: List of :class:`ViewEdge` objects");
|
||||
|
||||
static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
vector<ViewEdge *> edges = self->vs->edges();
|
||||
vector<ViewEdge *>::iterator it;
|
||||
@@ -251,7 +251,7 @@ static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
return py_edges;
|
||||
}
|
||||
|
||||
static int ViewShape_edges_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure))
|
||||
static int ViewShape_edges_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/)
|
||||
{
|
||||
PyObject *item;
|
||||
vector<ViewEdge *> v;
|
||||
@@ -281,7 +281,7 @@ PyDoc_STRVAR(ViewShape_name_doc,
|
||||
"\n"
|
||||
":type: str");
|
||||
|
||||
static PyObject *ViewShape_name_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_name_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
return PyUnicode_FromString(self->vs->getName().c_str());
|
||||
}
|
||||
@@ -291,7 +291,7 @@ PyDoc_STRVAR(ViewShape_library_path_doc,
|
||||
"\n"
|
||||
":type: str, or None if the ViewShape is not part of a library");
|
||||
|
||||
static PyObject *ViewShape_library_path_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_library_path_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
return PyUnicode_FromString(self->vs->getLibraryPath().c_str());
|
||||
}
|
||||
@@ -301,7 +301,7 @@ PyDoc_STRVAR(ViewShape_id_doc,
|
||||
"\n"
|
||||
":type: :class:`Id`");
|
||||
|
||||
static PyObject *ViewShape_id_get(BPy_ViewShape *self, void *UNUSED(closure))
|
||||
static PyObject *ViewShape_id_get(BPy_ViewShape *self, void * /*closure*/)
|
||||
{
|
||||
Id id(self->vs->getId());
|
||||
return BPy_Id_from_Id(id); // return a copy
|
||||
|
||||
Reference in New Issue
Block a user