From c664793787248511a853cb0f8977d4492969456c Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Mon, 8 Apr 2019 17:33:43 +0200
Subject: [PATCH] Remove useless statements

---
 src/mesh/ItemValue.hpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/mesh/ItemValue.hpp b/src/mesh/ItemValue.hpp
index ef1031752..827daa32d 100644
--- a/src/mesh/ItemValue.hpp
+++ b/src/mesh/ItemValue.hpp
@@ -95,13 +95,10 @@ class ItemValue
   }
 
   template <typename IndexType>
-  DataType& operator[](const IndexType& i) const noexcept(NO_ASSERT)
+  DataType& operator[](const IndexType&) const noexcept(NO_ASSERT)
   {
     static_assert(std::is_same_v<IndexType,ItemId>,
                   "ItemValue must be indexed by ItemId");
-    static_assert(not std::is_const_v<DataType>,
-                  "Cannot modify ItemValue of const");
-    return m_values[i];
   }
 
   PASTIS_INLINE
-- 
GitLab