Browse Source

view: drop redundant check

Michele Caini 1 year ago
parent
commit
f7cdf202e9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/entt/entity/view.hpp

+ 1 - 3
src/entt/entity/view.hpp

@@ -583,9 +583,7 @@ public:
      */
      */
     template<typename Func>
     template<typename Func>
     void each(Func func) const {
     void each(Func func) const {
-        if(this->index != sizeof...(Get)) {
-            pick_and_each(func, std::index_sequence_for<Get...>{});
-        }
+        pick_and_each(func, std::index_sequence_for<Get...>{});
     }
     }
 
 
     /**
     /**