diff --git a/Device/Data/LLData.h b/Device/Data/LLData.h index e6fe5bc0db68b534b9a6407b382d9f827f0661d0..2de4772cc2a0c7d616aedc0321fa76fb61952a76 100644 --- a/Device/Data/LLData.h +++ b/Device/Data/LLData.h @@ -62,7 +62,6 @@ private: void allocate(size_t rank, const int* dimensions); void clear(); bool checkDimensions(size_t rank, const int* dimensions) const; - size_t convertCoordinate(int* coordinate) const; void swapContents(LLData<T>& other); T getZeroElement() const; @@ -228,17 +227,6 @@ template <class T> inline bool LLData<T>::checkDimensions(size_t rank, const int [](const int& dim) -> bool { return dim > 0; }); } -template <class T> inline size_t LLData<T>::convertCoordinate(int* coordinate) const -{ - size_t offset = 1; - size_t result = 0; - for (size_t i = m_rank; i > 0; --i) { - result += offset * coordinate[i - 1]; - offset *= m_dims[i - 1]; - } - return result; -} - template <class T> void LLData<T>::swapContents(LLData<T>& other) { std::swap(this->m_rank, other.m_rank);