diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp index 8396b10e0..0eea8b4bd 100644 --- a/gtsam/discrete/DiscreteConditional.cpp +++ b/gtsam/discrete/DiscreteConditional.cpp @@ -47,15 +47,6 @@ DiscreteConditional::DiscreteConditional(const size_t nrFrontals, const DecisionTreeFactor& f) : BaseFactor(f / (*f.sum(nrFrontals))), BaseConditional(nrFrontals) {} -/* ************************************************************************** */ -DiscreteConditional::DiscreteConditional(size_t nrFrontals, - const DecisionTreeFactor& f, - const Ordering& orderedKeys) - : BaseFactor(f), BaseConditional(nrFrontals) { - keys_.clear(); - keys_.insert(keys_.end(), orderedKeys.begin(), orderedKeys.end()); -} - /* ************************************************************************** */ DiscreteConditional::DiscreteConditional(size_t nrFrontals, const DiscreteKeys& keys, diff --git a/gtsam/discrete/DiscreteConditional.h b/gtsam/discrete/DiscreteConditional.h index 549504985..3ec9ae590 100644 --- a/gtsam/discrete/DiscreteConditional.h +++ b/gtsam/discrete/DiscreteConditional.h @@ -56,17 +56,6 @@ class GTSAM_EXPORT DiscreteConditional /// Construct from factor, taking the first `nFrontals` keys as frontals. DiscreteConditional(size_t nFrontals, const DecisionTreeFactor& f); - /** - * @brief Construct from DecisionTreeFactor, - * taking the first `nrFrontals` from `orderedKeys`. - * - * @param nrFrontals The number of frontal variables. - * @param f The DecisionTreeFactor to construct from. - * @param orderedKeys Ordered list of keys involved in the conditional. - */ - DiscreteConditional(size_t nrFrontals, const DecisionTreeFactor& f, - const Ordering& orderedKeys); - /** * Construct from DiscreteKeys and AlgebraicDecisionTree, taking the first * `nFrontals` keys as frontals, in the order given.