[Bf-blender-cvs] [7298e53f4d5] refactor-mesh-position-generic: Remove unused variables
Hans Goudey
noreply at git.blender.org
Thu Sep 15 18:44:13 CEST 2022
Commit: 7298e53f4d5d4c087b106fa958cd5a2993ad0351
Author: Hans Goudey
Date: Wed Sep 14 22:02:26 2022 -0500
Branches: refactor-mesh-position-generic
https://developer.blender.org/rB7298e53f4d5d4c087b106fa958cd5a2993ad0351
Remove unused variables
===================================================================
M source/blender/blenkernel/intern/mesh_convert.cc
M source/blender/draw/intern/draw_cache_extract_mesh.cc
M source/blender/modifiers/intern/MOD_mask.cc
M source/blender/modifiers/intern/MOD_meshcache.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_convert.cc b/source/blender/blenkernel/intern/mesh_convert.cc
index 0ae6e1e4a1f..ed201106be2 100644
--- a/source/blender/blenkernel/intern/mesh_convert.cc
+++ b/source/blender/blenkernel/intern/mesh_convert.cc
@@ -1332,7 +1332,6 @@ void BKE_mesh_nomain_to_meshkey(Mesh *mesh_src, Mesh *mesh_dst, KeyBlock *kb)
BLI_assert(mesh_src->id.tag & LIB_TAG_NO_MAIN);
int a, totvert = mesh_src->totvert;
- float *fp;
if (totvert == 0 || mesh_dst->totvert == 0 || mesh_dst->totvert != totvert) {
return;
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.cc b/source/blender/draw/intern/draw_cache_extract_mesh.cc
index 37422629704..ca710a4da3e 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.cc
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.cc
@@ -368,7 +368,6 @@ static void extract_range_iter_lvert_mesh(void *__restrict userdata,
const ExtractorIterData *data = static_cast<ExtractorIterData *>(userdata);
const MeshRenderData *mr = data->mr;
- const int lvert_index = data->loose_elems[iter];
for (const ExtractorRunData &run_data : data->extractors) {
run_data.extractor->iter_lvert_mesh(
mr, iter, POINTER_OFFSET(extract_data, run_data.data_offset));
diff --git a/source/blender/modifiers/intern/MOD_mask.cc b/source/blender/modifiers/intern/MOD_mask.cc
index 45d2c565011..d8252f0a1c2 100644
--- a/source/blender/modifiers/intern/MOD_mask.cc
+++ b/source/blender/modifiers/intern/MOD_mask.cc
@@ -337,9 +337,6 @@ static void copy_masked_verts_to_new_mesh(const Mesh &src_mesh,
Span<int> vertex_map)
{
BLI_assert(src_mesh.totvert == vertex_map.size());
- const Span<float3> src_positions = src_mesh.positions();
- MutableSpan<float3> dst_positions = dst_mesh.positions_for_write();
-
for (const int i_src : vertex_map.index_range()) {
const int i_dst = vertex_map[i_src];
if (i_dst == -1) {
diff --git a/source/blender/modifiers/intern/MOD_meshcache.c b/source/blender/modifiers/intern/MOD_meshcache.c
index a007e685645..43757c0e95d 100644
--- a/source/blender/modifiers/intern/MOD_meshcache.c
+++ b/source/blender/modifiers/intern/MOD_meshcache.c
@@ -176,9 +176,6 @@ static void meshcache_do(MeshCacheModifierData *mcmd,
BKE_modifier_set_error(ob, &mcmd->modifier, "'Integrate' requires faces");
}
else {
- /* the moons align! */
- int i;
-
float(*vertexCos_New)[3] = MEM_malloc_arrayN(verts_num, sizeof(*vertexCos_New), __func__);
const float(*positions)[3] = BKE_mesh_positions(me);
More information about the Bf-blender-cvs
mailing list