remove return from void funcs
@@ -108,7 +108,6 @@ void world::get(const Func& func) const {
static_assert(arity<Func>::value == 1, "singleton component must be the only argument");
_::entity_with_invoker<Func>::invoke_get(
this->m_world, this->singleton<first_arg_t<Func>>(), func);
- return *this;
}
template <typename Func, if_t< is_callable<Func>::value > >
@@ -116,7 +115,6 @@ void world::set(const Func& func) {
static_assert(arity<Func>::value == 1, "singleton component must be the only argument");
_::entity_with_invoker<Func>::invoke_get_mut(
this->m_world, this->singleton<first_arg_t<Func>>(), func);
- return *this;
}
} // namespace flecs
