[PATCH 06/10] libstdc++: remove unused __is_void in cpp_type_traits.h

Ken Matsui kmatsui@cs.washington.edu
Sun Mar 26 04:30:28 GMT 2023


This patch removes unused __is_void defined in cpp_type_traits.h

libstdc++-v3/ChangeLog:

	* include/bits/cpp_type_traits.h (__is_void): Remove unused __is_void.

Signed-off-by: Ken Matsui <kmatsui@cs.washington.edu>
---
 libstdc++-v3/include/bits/cpp_type_traits.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/libstdc++-v3/include/bits/cpp_type_traits.h b/libstdc++-v3/include/bits/cpp_type_traits.h
index 4312f32a4e0..d329bc5b208 100644
--- a/libstdc++-v3/include/bits/cpp_type_traits.h
+++ b/libstdc++-v3/include/bits/cpp_type_traits.h
@@ -105,21 +105,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       typedef __true_type __type;
     };
 
-  // Holds if the template-argument is a void type.
-  template<typename _Tp>
-    struct __is_void
-    {
-      enum { __value = 0 };
-      typedef __false_type __type;
-    };
-
-  template<>
-    struct __is_void<void>
-    {
-      enum { __value = 1 };
-      typedef __true_type __type;
-    };
-
   //
   // Integer types
   //
-- 
2.40.0



More information about the Libstdc++ mailing list