diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:37:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:38:16 +0300 |
commit | 97746129d5870beedc40e3c035c7982ce8a6bebc (patch) | |
tree | b819b8e7875e6684aad7ea1f6bb7922d4fa1c8fc /source/blender/bmesh | |
parent | ed7f5713f8f9d605e3cd4cce42e40fb5c6bf4bf5 (diff) |
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*/`
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.cc | 2 | ||||
-rw-r--r-- | source/blender/bmesh/tools/bmesh_boolean.cc | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh.cc b/source/blender/bmesh/intern/bmesh_mesh.cc index 4f42ce4a470..5c8f32b9bfa 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.cc +++ b/source/blender/bmesh/intern/bmesh_mesh.cc @@ -269,7 +269,7 @@ void BM_mesh_free(BMesh *bm) MEM_freeN(bm); } -void bmesh_edit_begin(BMesh *UNUSED(bm), BMOpTypeFlag UNUSED(type_flag)) +void bmesh_edit_begin(BMesh * /*bm*/, BMOpTypeFlag /*type_flag*/) { /* Most operators seem to be using BMO_OPTYPE_FLAG_UNTAN_MULTIRES to change the MDisps to * absolute space during mesh edits. With this enabled, changes to the topology diff --git a/source/blender/bmesh/tools/bmesh_boolean.cc b/source/blender/bmesh/tools/bmesh_boolean.cc index 50a6812895f..288a0d9ab74 100644 --- a/source/blender/bmesh/tools/bmesh_boolean.cc +++ b/source/blender/bmesh/tools/bmesh_boolean.cc @@ -466,16 +466,16 @@ bool BM_mesh_boolean_knife(BMesh *bm, blender::meshintersect::BoolOpType::None); } #else -bool BM_mesh_boolean(BMesh *UNUSED(bm), +bool BM_mesh_boolean(BMesh * /*bm*/, struct BMLoop *(*looptris)[3], - const int UNUSED(looptris_tot), + const int /*looptris_tot*/, int (*test_fn)(BMFace *, void *), - void *UNUSED(user_data), - const int UNUSED(nshapes), - const bool UNUSED(use_self), - const bool UNUSED(keep_hidden), - const bool UNUSED(hole_tolerant), - const int UNUSED(boolean_mode)) + void * /*user_data*/, + const int /*nshapes*/, + const bool /*use_self*/, + const bool /*keep_hidden*/, + const bool /*hole_tolerant*/, + const int /*boolean_mode*/) { UNUSED_VARS(looptris, test_fn); return false; @@ -489,16 +489,16 @@ bool BM_mesh_boolean(BMesh *UNUSED(bm), * TODO: need to ensure that "selected/non-selected" flag of original faces gets propagated * to the intersection result faces. */ -bool BM_mesh_boolean_knife(BMesh *UNUSED(bm), +bool BM_mesh_boolean_knife(BMesh * /*bm*/, struct BMLoop *(*looptris)[3], - const int UNUSED(looptris_tot), + const int /*looptris_tot*/, int (*test_fn)(BMFace *, void *), - void *UNUSED(user_data), - const int UNUSED(nshapes), - const bool UNUSED(use_self), - const bool UNUSED(use_separate_all), - const bool UNUSED(hole_tolerant), - const bool UNUSED(keep_hidden)) + void * /*user_data*/, + const int /*nshapes*/, + const bool /*use_self*/, + const bool /*use_separate_all*/, + const bool /*hole_tolerant*/, + const bool /*keep_hidden*/) { UNUSED_VARS(looptris, test_fn); return false; |