[Bf-blender-cvs] [d7e2e5f99d5] functions: remove comments that are more confusing than helpful

Jacques Lucke noreply at git.blender.org
Mon Jul 1 17:47:14 CEST 2019


Commit: d7e2e5f99d5700a4364b11afc9606e9b29698044
Author: Jacques Lucke
Date:   Mon Jul 1 15:53:46 2019 +0200
Branches: functions
https://developer.blender.org/rBd7e2e5f99d5700a4364b11afc9606e9b29698044

remove comments that are more confusing than helpful

===================================================================

M	source/blender/simulations/bparticles/simulate.cpp

===================================================================

diff --git a/source/blender/simulations/bparticles/simulate.cpp b/source/blender/simulations/bparticles/simulate.cpp
index ef477d2f67d..011814b8b88 100644
--- a/source/blender/simulations/bparticles/simulate.cpp
+++ b/source/blender/simulations/bparticles/simulate.cpp
@@ -14,9 +14,6 @@ namespace BParticles {
 
 using BLI::VectorAdaptor;
 
-/* Static Data
- **************************************************/
-
 BLI_LAZY_INIT_STATIC(SmallVector<uint>, static_number_range_vector)
 {
   return Range<uint>(0, 10000).to_small_vector();
@@ -35,9 +32,6 @@ static ArrayRef<uint> static_number_range_ref(Range<uint> range)
   return static_number_range_ref(range.first(), range.size());
 }
 
-/* Events
- **************************************************/
-
 static uint get_max_event_storage_size(ArrayRef<Event *> events)
 {
   uint max_size = 0;
@@ -223,9 +217,6 @@ BLI_NOINLINE static void execute_events(BlockAllocator &block_allocator,
   }
 }
 
-/* Step individual particles.
- **********************************************/
-
 BLI_NOINLINE static void simulate_to_next_event(FixedArrayAllocator &array_allocator,
                                                 BlockAllocator &block_allocator,
                                                 ParticleSet particles,
@@ -600,9 +591,6 @@ BLI_NOINLINE static void simulate_blocks_from_birth_to_current_time(
       USE_THREADING);
 }
 
-/* Delete particles.
- **********************************************/
-
 BLI_NOINLINE static SmallVector<ParticlesBlock *> get_all_blocks(ParticlesState &state)
 {
   SmallVector<ParticlesBlock *> blocks;
@@ -640,9 +628,6 @@ BLI_NOINLINE static void delete_tagged_particles(ParticlesState &state)
       USE_THREADING);
 }
 
-/* Compress particle blocks.
- **************************************************/
-
 BLI_NOINLINE static void compress_all_blocks(ParticlesContainer &particles)
 {
   SmallVector<ParticlesBlock *> blocks = particles.active_blocks().to_small_vector();
@@ -662,9 +647,6 @@ BLI_NOINLINE static void compress_all_containers(ParticlesState &state)
   }
 }
 
-/* Fix state based on description.
- *****************************************************/
-
 BLI_NOINLINE static void ensure_required_containers_exist(ParticlesState &state,
                                                           StepDescription &description)
 {
@@ -721,9 +703,6 @@ BLI_NOINLINE static void ensure_required_attributes_exist(ParticlesState &state,
   }
 }
 
-/* Main Entry Point
- **************************************************/
-
 BLI_NOINLINE static void simulate_all_existing_blocks(ParticlesState &state,
                                                       StepDescription &step_description,
                                                       BlockAllocators &block_allocators,



More information about the Bf-blender-cvs mailing list