diff --git a/gtsam.h b/gtsam.h index 841c4b01c..429cbc7d3 100644 --- a/gtsam.h +++ b/gtsam.h @@ -819,7 +819,6 @@ virtual class BayesTree { void insert(const CLIQUE* subtree); size_t numCachedSeparatorMarginals() const; CLIQUE* clique(size_t j) const; - bool checkConsistency() const; }; template diff --git a/gtsam/inference/BayesTree-inl.h b/gtsam/inference/BayesTree-inl.h index f3aeacb36..d5592ed2a 100644 --- a/gtsam/inference/BayesTree-inl.h +++ b/gtsam/inference/BayesTree-inl.h @@ -800,23 +800,5 @@ namespace gtsam { } /* ************************************************************************* */ - template - bool BayesTree::checkConsistency() const { - // Verify all nodes are mapped to initialized cliques - bool result = true; - for (gtsam::Index idx=0; idx