From b3ce9ea902f98b17fb834c2acd0ba7052a0ed566 Mon Sep 17 00:00:00 2001 From: Guillaume Bittoun Date: Sun, 13 Jul 2014 13:33:21 +0000 Subject: [PATCH] arraynd: removing ComputeTotalSize for specialization also. --- src/lol/math/arraynd.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lol/math/arraynd.h b/src/lol/math/arraynd.h index 5c5c78f5..033403c0 100644 --- a/src/lol/math/arraynd.h +++ b/src/lol/math/arraynd.h @@ -255,21 +255,16 @@ public: return super::operator[](pos); } - inline size_t ComputeTotalSize(vec_t sizes) - { - return m_sizes[0]; - } - /* Resize the array. * FIXME: data gets scrambled; should we care? */ inline void SetSize(vec_t sizes, element_t e = element_t()) { - this->Resize(ComputeTotalSize(sizes), e); + this->Resize(m_sizes[0], e); } inline vec_t GetSize() const { - return ComputeTotalSize(this->m_sizes); + return this->m_sizes; } public: