remove / comment unused code, patch by nico_ga on IRC with some edits.
[blender-staging.git] / source / blender / blenkernel / intern / particle_system.c
index 6b1540d7d53c35fb5a34126c1c71793c8fc2e985..fca8d470dc17a62d788038ba9ae45481988a8cef 100644 (file)
@@ -890,7 +890,7 @@ static void distribute_threads_exec(ParticleThread *thread, ParticleData *pa, Ch
                if(ctx->tree){
                        KDTreeNearest ptn[10];
                        int w,maxw;//, do_seams;
-                       float maxd,mind,/*dd,*/totw= 0.0f;
+                       float maxd /*, mind,dd */, totw= 0.0f;
                        int parent[10];
                        float pweight[10];
 
@@ -899,7 +899,7 @@ static void distribute_threads_exec(ParticleThread *thread, ParticleData *pa, Ch
                        maxw = BLI_kdtree_find_n_nearest(ctx->tree,4,orco1,NULL,ptn);
 
                        maxd=ptn[maxw-1].dist;
-                       mind=ptn[0].dist;
+                       /* mind=ptn[0].dist; */ /* UNUSED */
                        
                        /* the weights here could be done better */
                        for(w=0; w<maxw; w++){