From 1f36c92f82e90434a6250c8674b5b59200934a59 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 4 Nov 2014 04:20:33 +0300 Subject: [PATCH] Removed an unused template parameter in Array<>::packSquareMatrixImpl<>() --- libuavcan/include/uavcan/marshal/array.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libuavcan/include/uavcan/marshal/array.hpp b/libuavcan/include/uavcan/marshal/array.hpp index 003ee540db..8fc64f350f 100644 --- a/libuavcan/include/uavcan/marshal/array.hpp +++ b/libuavcan/include/uavcan/marshal/array.hpp @@ -394,7 +394,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl return -ErrLogic; } - template + template void packSquareMatrixImpl(const InputIter src_row_major) { StaticAssert::check(); @@ -749,7 +749,7 @@ public: template void packSquareMatrix(const ScalarType (&src_row_major)[MaxSize]) { - packSquareMatrixImpl(src_row_major); + packSquareMatrixImpl(src_row_major); } /** @@ -798,12 +798,7 @@ public: { if (src_row_major.size() == MaxSize) { -#if UAVCAN_CPP_VERSION > UAVCAN_CPP03 - typedef typename RemoveReference::Type RhsValueType; - packSquareMatrixImpl(src_row_major.begin()); -#else - packSquareMatrixImpl(src_row_major.begin()); -#endif + packSquareMatrixImpl(src_row_major.begin()); } else if (src_row_major.size() == 0) {