From d718270d69bbaeca0bea8a7cf6ea56710c2f6889 Mon Sep 17 00:00:00 2001 From: schnetter <> Date: Tue, 4 May 2004 20:12:00 +0000 Subject: Remove unused code darcs-hash:20040504201207-07bb3-b8a9db665cc225198475179abc2d2e6bcd7f2b2f.gz --- Carpet/CarpetLib/src/vect.hh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetLib') diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh index afd38de29..f540fa029 100644 --- a/Carpet/CarpetLib/src/vect.hh +++ b/Carpet/CarpetLib/src/vect.hh @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.26 2004/04/18 13:25:56 schnetter Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.27 2004/05/04 22:12:07 schnetter Exp $ #ifndef VECT_HH #define VECT_HH @@ -745,6 +745,30 @@ inline ostream& operator<< (ostream& os, const vect& a) { +#if 0 +// Specialise explicit constructors + +/** Constructor for 2-element vectors from 2 elements. */ +template +inline vect::vect (const T x, const T y) { + elt[0]=x; elt[1]=y; +} + +/** Constructor for 3-element vectors from 3 elements. */ +vect (const T x, const T y, const T z) { + assert (D==3); + elt[0]=x; elt[1]=y; elt[2]=z; +} + +/** Constructor for 4-element vectors from 4 elements. */ +vect (const T x, const T y, const T z, const T t) { + assert (D==4); + elt[0]=x; elt[1]=y; elt[2]=z; elt[3]=t; +} +#endif + + + // Specialise for double template<> -- cgit v1.2.3