Remove redundant function

"deleteForMatchingFunction()" was exactly the same as
"removeForMatchingFunction()", so it was removed.
This commit is contained in:
Stephen Seo 2021-09-08 14:14:14 +09:00
parent c2dc5124c9
commit 120368094e

View file

@ -945,7 +945,7 @@ namespace EC
\endcode \endcode
\return The index of the function, used for deletion with \return The index of the function, used for deletion with
deleteForMatchingFunction() or filtering with removeForMatchingFunction() or filtering with
keepSomeMatchingFunctions() or removeSomeMatchingFunctions(), keepSomeMatchingFunctions() or removeSomeMatchingFunctions(),
or calling with callForMatchingFunction(). or calling with callForMatchingFunction().
*/ */
@ -1340,19 +1340,6 @@ namespace EC
return removeSomeMatchingFunctions<decltype(list)>(list); 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 \brief Sets the context pointer of a stored function