From 0ae4a3f66bf4c5fb79a3a6616813257ffe0c8dd1 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 13 Feb 2012 20:27:56 +0000 Subject: [PATCH] Removed unused tuple constructor helper from NonlinearFactor --- gtsam/nonlinear/NonlinearFactor.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gtsam/nonlinear/NonlinearFactor.h b/gtsam/nonlinear/NonlinearFactor.h index 166ad6980..5ebe662e5 100644 --- a/gtsam/nonlinear/NonlinearFactor.h +++ b/gtsam/nonlinear/NonlinearFactor.h @@ -24,7 +24,6 @@ #include #include -#include #include #include @@ -36,19 +35,6 @@ namespace gtsam { -using boost::make_tuple; - -// Helper function to fill a vector from a tuple function of any length -template -inline void __fill_from_tuple(std::vector& vector, size_t position, const CONS& tuple) { - vector[position] = tuple.get_head(); - __fill_from_tuple(vector, position+1, tuple.get_tail()); -} -template<> -inline void __fill_from_tuple(std::vector& vector, size_t position, const boost::tuples::null_type& tuple) { - // Do nothing -} - /* ************************************************************************* */ /** * Nonlinear factor base class