Removed unused tuple constructor helper from NonlinearFactor

release/4.3a0
Richard Roberts 2012-02-13 20:27:56 +00:00
parent 75428b13fe
commit 0ae4a3f66b
1 changed files with 0 additions and 14 deletions

View File

@ -24,7 +24,6 @@
#include <limits>
#include <boost/serialization/base_object.hpp>
#include <boost/tuple/tuple.hpp>
#include <gtsam/inference/Factor-inl.h>
#include <gtsam/inference/IndexFactor.h>
@ -36,19 +35,6 @@
namespace gtsam {
using boost::make_tuple;
// Helper function to fill a vector from a tuple function of any length
template<typename CONS>
inline void __fill_from_tuple(std::vector<Symbol>& vector, size_t position, const CONS& tuple) {
vector[position] = tuple.get_head();
__fill_from_tuple<typename CONS::tail_type>(vector, position+1, tuple.get_tail());
}
template<>
inline void __fill_from_tuple<boost::tuples::null_type>(std::vector<Symbol>& vector, size_t position, const boost::tuples::null_type& tuple) {
// Do nothing
}
/* ************************************************************************* */
/**
* Nonlinear factor base class