From: Stephen Seo Date: Wed, 8 Sep 2021 05:14:14 +0000 (+0900) Subject: Remove redundant function X-Git-Tag: 1.0~23 X-Git-Url: https://git.seodisparate.com/stephenseo/LD55?a=commitdiff_plain;h=120368094e44f253c75a258904c974812589bb5d;p=EntityComponentMetaSystem Remove redundant function "deleteForMatchingFunction()" was exactly the same as "removeForMatchingFunction()", so it was removed. --- diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 0420504..94ba7bf 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -945,7 +945,7 @@ namespace EC \endcode \return The index of the function, used for deletion with - deleteForMatchingFunction() or filtering with + removeForMatchingFunction() or filtering with keepSomeMatchingFunctions() or removeSomeMatchingFunctions(), or calling with callForMatchingFunction(). */ @@ -1340,19 +1340,6 @@ namespace EC return removeSomeMatchingFunctions(list); } - /*! - \brief Deletes the specified function. - - The index of a function is returned from addForMatchingFunction() - so there is no other way to get the index of a function. - - \return True if function existed and has been deleted. - */ - bool deleteForMatchingFunction(std::size_t index) - { - return forMatchingFunctions.erase(index) == 1; - } - /*! \brief Sets the context pointer of a stored function