]> git.seodisparate.com - EntityComponentMetaSystem/commitdiff
Remove redundant function
authorStephen Seo <seo.disparate@gmail.com>
Wed, 8 Sep 2021 05:14:14 +0000 (14:14 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 8 Sep 2021 05:14:14 +0000 (14:14 +0900)
"deleteForMatchingFunction()" was exactly the same as
"removeForMatchingFunction()", so it was removed.

src/EC/Manager.hpp

index 0420504b671660fe16c804800d441eb12c0ef683..94ba7bf06cda1b2f047f7abb236960ba23a6a4b5 100644 (file)
@@ -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<decltype(list)>(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