summaryrefslogtreecommitdiff
path: root/src/utils/functors.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/functors.h')
-rw-r--r--src/utils/functors.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/utils/functors.h b/src/utils/functors.h
index ef1aa046..fce3bec5 100644
--- a/src/utils/functors.h
+++ b/src/utils/functors.h
@@ -29,26 +29,6 @@ namespace
{
/**
- * Functor used for the search of an object by name in a list.
- *
- * Note:
- * - this functor assumes that the object defines as public the following
- * method: std::string getName() const.
- * - this functor assumes that the list is a list of pointers.
- */
-template <typename T>
-struct obj_name_is
- : public std::binary_function<T, std::string, bool>
-{
- bool
- operator()(const T& obj,
- const std::string& name) const
- {
- return (obj->getName() == name);
- }
-};
-
-/**
* Functor to convert a string into another type using
* std::istringstream.operator>>().
*/