From 3d33555538122e0ae745b31f28f2916f90ab87af Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Thu, 24 Aug 2023 14:24:47 +0100 Subject: [PATCH] Array: remove wrong constructor The NumericVectorWithOffset constructor would only work when T=NUMBER --- src/include/stir/NumericVectorWithOffset.h | 5 +---- src/include/stir/NumericVectorWithOffset.inl | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/include/stir/NumericVectorWithOffset.h b/src/include/stir/NumericVectorWithOffset.h index 373da43dc6..4411e5a9ec 100644 --- a/src/include/stir/NumericVectorWithOffset.h +++ b/src/include/stir/NumericVectorWithOffset.h @@ -4,7 +4,7 @@ Copyright (C) 2000 PARAPET partners Copyright (C) 2000 - 2005-06-03, Hammersmith Imanet Ltd Copyright (C) 2011-07-01 - 2012, Kris Thielemans - Copyright (C) 2020, 2023 UCL + Copyright (C) 2020, 2023 University College London This file is part of STIR. SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license @@ -60,9 +60,6 @@ class NumericVectorWithOffset : public VectorWithOffset //! Construct a NumericVectorWithOffset of elements with offset \c min_index inline NumericVectorWithOffset(const int min_index, const int max_index); - //! Construct a NumericVectorWithOffset of elements with offset \c min_index pointing to \c data_ptr - inline NumericVectorWithOffset(const int min_index, const int max_index, elemT * const data_ptr); - //! Constructor from an object of this class' base_type inline NumericVectorWithOffset(const VectorWithOffset& t); diff --git a/src/include/stir/NumericVectorWithOffset.inl b/src/include/stir/NumericVectorWithOffset.inl index 929304cd58..abe67c595a 100644 --- a/src/include/stir/NumericVectorWithOffset.inl +++ b/src/include/stir/NumericVectorWithOffset.inl @@ -43,12 +43,6 @@ NumericVectorWithOffset::NumericVectorWithOffset(const int min_index, : base_type(min_index, max_index) {} -template -inline -NumericVectorWithOffset::NumericVectorWithOffset(const int min_index, const int max_index, NUMBER * const data_ptr) - : base_type(min_index, max_index, data_ptr) -{} - template NumericVectorWithOffset:: NumericVectorWithOffset(const VectorWithOffset& t)