From 75375dad86e0ff62192a54cc7e2d51063adcebee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Fri, 11 Feb 2022 16:12:28 +0100
Subject: [PATCH] Fix comment and remove useless inner type definition

---
 src/mesh/SubItemArrayPerItem.hpp | 6 ++----
 src/mesh/SubItemValuePerItem.hpp | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/mesh/SubItemArrayPerItem.hpp b/src/mesh/SubItemArrayPerItem.hpp
index 8c8b1724c..f2103789e 100644
--- a/src/mesh/SubItemArrayPerItem.hpp
+++ b/src/mesh/SubItemArrayPerItem.hpp
@@ -42,15 +42,13 @@ class SubItemArrayPerItem
   // Allow const std:weak_ptr version to access our data
   friend SubItemArrayPerItem<std::add_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>;
 
-  // Allow const std:shared_ptr version to access our data
+  // Allow non-const std:shared_ptr version to access our data
   friend SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivitySharedPtr>;
 
-  // Allow const std:weak_ptr version to access our data
+  // Allow non-const std:weak_ptr version to access our data
   friend SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>;
 
  public:
-  using ToShared = SubItemArrayPerItem<DataType, ItemOfItem, ConnectivitySharedPtr>;
-
   friend PUGS_INLINE SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityPtr>
   copy(SubItemArrayPerItem<DataType, ItemOfItem, ConnectivityPtr>& source)
   {
diff --git a/src/mesh/SubItemValuePerItem.hpp b/src/mesh/SubItemValuePerItem.hpp
index b86b075ec..defdc8fc9 100644
--- a/src/mesh/SubItemValuePerItem.hpp
+++ b/src/mesh/SubItemValuePerItem.hpp
@@ -41,15 +41,13 @@ class SubItemValuePerItem
   // Allow const std:weak_ptr version to access our data
   friend SubItemValuePerItem<std::add_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>;
 
-  // Allow const std:shared_ptr version to access our data
+  // Allow non-const std:shared_ptr version to access our data
   friend SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivitySharedPtr>;
 
-  // Allow const std:weak_ptr version to access our data
+  // Allow non-const std:weak_ptr version to access our data
   friend SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>;
 
  public:
-  using ToShared = SubItemValuePerItem<DataType, ItemOfItem, ConnectivitySharedPtr>;
-
   friend PUGS_INLINE SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityPtr>
   copy(SubItemValuePerItem<DataType, ItemOfItem, ConnectivityPtr>& source)
   {
-- 
GitLab