File tree 1 file changed +0
-5
lines changed
include/ignition/gazebo/detail
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 20
20
#include < cstring>
21
21
#include < map>
22
22
#include < memory>
23
- #include < mutex>
24
23
#include < optional>
25
24
#include < set>
26
25
#include < tuple>
@@ -487,9 +486,6 @@ void EntityComponentManager::EachRemoved(typename identity<std::function<
487
486
template <typename ...ComponentTypeTs>
488
487
detail::View<ComponentTypeTs...> *EntityComponentManager::FindView () const
489
488
{
490
- static std::mutex mutex;
491
- std::lock_guard<std::mutex> lock (mutex);
492
-
493
489
auto viewKey = std::vector<ComponentTypeId>{ComponentTypeTs::typeId...};
494
490
495
491
auto baseViewPtr = this ->FindView (viewKey);
@@ -498,7 +494,6 @@ detail::View<ComponentTypeTs...> *EntityComponentManager::FindView() const
498
494
auto view = static_cast <detail::View<ComponentTypeTs...>*>(baseViewPtr);
499
495
500
496
// add any new entities to the view before using it
501
- view->ToAddEntities ();
502
497
for (const auto &[entity, isNew] : view->ToAddEntities ())
503
498
{
504
499
view->AddEntityWithConstComps (entity, isNew,
You can’t perform that action at this time.
0 commit comments