diff --git a/gtsam/inference/ClusterTree-inst.h b/gtsam/inference/ClusterTree-inst.h index 98cc61311..9bc141955 100644 --- a/gtsam/inference/ClusterTree-inst.h +++ b/gtsam/inference/ClusterTree-inst.h @@ -148,15 +148,9 @@ struct EliminationData { } // Set up BayesTree parent and child pointers if (parentData) { -#ifdef GTSAM_USE_TBB - parentData->writeLock->lock(); -#endif if (parentData->parentData) // If our parent is not the dummy node bayesTreeNode->parent_ = parentData->bayesTreeNode; parentData->bayesTreeNode->children.push_back(bayesTreeNode); -#ifdef GTSAM_USE_TBB - parentData->writeLock->unlock(); -#endif } }