From 371ddda4d0b3c2ef0c40f604715db801dc33b669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 4 Sep 2020 11:26:26 +0200 Subject: Cleanup: Clang-Tidy readability-redundant-preprocessor fixes Remove redundantly nested `#if` and `#ifdef` statements. One nested `#if 0` block was left untouched, as it's in particle code that's no longer maintained. Furthermore, that block also has some explanation as to the differences between the enabled & disabled parts. One nested `#if 0` construct was completely removed, leaving only the actually used bit of code. There was no explanation as to the usefulness of the disabled code, and it hasn't been touched in years. No functional changes. --- source/blender/blenkernel/intern/mesh_remesh_voxel.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/blenkernel/intern/mesh_remesh_voxel.c') diff --git a/source/blender/blenkernel/intern/mesh_remesh_voxel.c b/source/blender/blenkernel/intern/mesh_remesh_voxel.c index 010b306ec76..e093e3024c3 100644 --- a/source/blender/blenkernel/intern/mesh_remesh_voxel.c +++ b/source/blender/blenkernel/intern/mesh_remesh_voxel.c @@ -102,11 +102,9 @@ Mesh *BKE_mesh_remesh_voxel_ovdb_volume_to_mesh_nomain(struct OpenVDBLevelSet *l double adaptivity, bool relax_disoriented_triangles) { -# ifdef WITH_OPENVDB struct OpenVDBVolumeToMeshData output_mesh; OpenVDBLevelSet_volume_to_mesh( level_set, &output_mesh, isovalue, adaptivity, relax_disoriented_triangles); -# endif Mesh *mesh = BKE_mesh_new_nomain(output_mesh.totvertices, 0, -- cgit v1.2.3