diff --git a/include/finufft/utils.h b/include/finufft/utils.h index 42650275..0b875fdf 100644 --- a/include/finufft/utils.h +++ b/include/finufft/utils.h @@ -12,22 +12,6 @@ namespace finufft { namespace utils { -// Simple helper to wrap pointer in std::vector and release it later -template -void wrapArrayInVector( T *sourceArray, size_t arraySize, std::vector > &targetVector ) { - typename std::_Vector_base >::_Vector_impl *vectorPtr = - (typename std::_Vector_base >::_Vector_impl *)((void *) &targetVector); - vectorPtr->_M_start = sourceArray; - vectorPtr->_M_finish = vectorPtr->_M_end_of_storage = vectorPtr->_M_start + arraySize; -} - -template -void releaseVectorWrapper( std::vector > &targetVector ) { - typename std::_Vector_base >::_Vector_impl *vectorPtr = - (typename std::_Vector_base >::_Vector_impl *)((void *) &targetVector); - vectorPtr->_M_start = vectorPtr->_M_finish = vectorPtr->_M_end_of_storage = NULL; -} - // ahb's low-level array helpers template FINUFFT_EXPORT T FINUFFT_CDECL relerrtwonorm(BIGINT n, const std::complex *a,