Browse Source

meta: removed meta_type::is_void

Michele Caini 4 years ago
parent
commit
89aece7c28
3 changed files with 0 additions and 13 deletions
  1. 0 8
      src/entt/meta/meta.hpp
  2. 0 2
      src/entt/meta/node.hpp
  3. 0 3
      test/entt/meta/meta_type.cpp

+ 0 - 8
src/entt/meta/meta.hpp

@@ -1176,14 +1176,6 @@ public:
         return node->size_of;
     }
 
-    /**
-     * @brief Checks whether a type refers to void or not.
-     * @return True if the underlying type is void, false otherwise.
-     */
-    [[nodiscard]] bool is_void() const ENTT_NOEXCEPT {
-        return node->is_void;
-    }
-
     /**
      * @brief Checks whether a type refers to an integral type or not.
      * @return True if the underlying type is an integral type, false otherwise.

+ 0 - 2
src/entt/meta/node.hpp

@@ -110,7 +110,6 @@ struct meta_type_node {
     meta_type_node * next;
     meta_prop_node * prop;
     const size_type size_of;
-    const bool is_void;
     const bool is_integral;
     const bool is_floating_point;
     const bool is_array;
@@ -195,7 +194,6 @@ public:
             nullptr,
             nullptr,
             size_of_v<Type>,
-            std::is_void_v<Type>,
             std::is_integral_v<Type>,
             std::is_floating_point_v<Type>,
             std::is_array_v<Type>,

+ 0 - 3
test/entt/meta/meta_type.cpp

@@ -218,9 +218,6 @@ TEST_F(MetaType, SizeOf) {
 }
 
 TEST_F(MetaType, Traits) {
-    ASSERT_TRUE(entt::resolve<void>().is_void());
-    ASSERT_FALSE(entt::resolve<int>().is_void());
-
     ASSERT_TRUE(entt::resolve<bool>().is_integral());
     ASSERT_FALSE(entt::resolve<double>().is_integral());