From 38846aaac68a1a9f6e3c39553a9af36de97680c8 Mon Sep 17 00:00:00 2001 From: jing Date: Thu, 23 Jan 2014 19:08:20 -0500 Subject: [PATCH] remove FixVector(size_t m, ...) --- gtsam_unstable/base/FixedVector.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/gtsam_unstable/base/FixedVector.h b/gtsam_unstable/base/FixedVector.h index 6df24fb4f..dd3668087 100644 --- a/gtsam_unstable/base/FixedVector.h +++ b/gtsam_unstable/base/FixedVector.h @@ -45,24 +45,6 @@ public: std::copy(values, values+N, this->data()); } - /** - * nice constructor, dangerous as number of arguments must be exactly right - * and you have to pass doubles !!! always use 0.0 never 0 - * - * NOTE: this will throw warnings/explode if there is no argument - * before the variadic section, so there is a meaningless size argument. - */ - /* - FixedVector(size_t n, ...) { - va_list ap; - va_start(ap, n); - for(size_t i = 0 ; i < N ; i++) { - double value = va_arg(ap, double); - (*this)(i) = value; - } - va_end(ap); - } - */ /** * Create vector initialized to a constant value * @param value constant value