Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-09-07 20:36:24 +0300
committerJacques Lucke <jacques@blender.org>2020-09-07 21:04:00 +0300
commitd2911124f42fd58d42b1b734c852980d5dbde401 (patch)
tree4849cefd96ace6d618c7fb8278738e9463aa395f /source/blender/blenlib/BLI_vector_set_slots.hh
parent6b436b80a45c947d49ab5fbda515fb02877eefd4 (diff)
BLI: improve exception safety of VectorSet
For more information see rB2aff45146f1464ba8899368ad004522cb6a1a98c.
Diffstat (limited to 'source/blender/blenlib/BLI_vector_set_slots.hh')
-rw-r--r--source/blender/blenlib/BLI_vector_set_slots.hh12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/blenlib/BLI_vector_set_slots.hh b/source/blender/blenlib/BLI_vector_set_slots.hh
index 0e75c4690a4..b79341ed744 100644
--- a/source/blender/blenlib/BLI_vector_set_slots.hh
+++ b/source/blender/blenlib/BLI_vector_set_slots.hh
@@ -97,18 +97,6 @@ template<typename Key> class SimpleVectorSetSlot {
}
/**
- * Move the other slot into this slot and destruct it. We do destruction here, because this way
- * we can avoid a comparison with the state, since we know the slot is occupied. For this
- * specific slot implementation, this does not make a difference.
- */
- void relocate_occupied_here(SimpleVectorSetSlot &other, uint64_t UNUSED(hash))
- {
- BLI_assert(!this->is_occupied());
- BLI_assert(other.is_occupied());
- state_ = other.state_;
- }
-
- /**
* Change the state of this slot from empty/removed to occupied. The hash can be used by other
* slot implementations.
*/