浏览代码

registry: discard unused arguments from listeners if possible

Michele Caini 3 年之前
父节点
当前提交
068d9f8ae8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -297,7 +297,7 @@ class basic_registry {
             }
             }
         }
         }
 
 
-        static void discard_if(basic_common_type &set, [[maybe_unused]] basic_registry &owner, const Entity entt) {
+        static void discard_if(basic_common_type &set, const Entity entt) {
             set.remove(entt);
             set.remove(entt);
         }
         }
     };
     };