summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 17:49:43 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 17:49:43 +0100
commit5b32d72db8fdb2ee81c8770a75678e8e7ad0201e (patch)
treea7a5718a0f92489c5ab3b71599c81e2479f32231 /src/utils
parent0b339e547b77f80d6e81313bfb38249ce8995553 (diff)
downloadmanaserv-5b32d72db8fdb2ee81c8770a75678e8e7ad0201e.tar.gz
manaserv-5b32d72db8fdb2ee81c8770a75678e8e7ad0201e.tar.xz
manaserv-5b32d72db8fdb2ee81c8770a75678e8e7ad0201e.zip
Removed unused functor obj_name_is
Diffstat (limited to 'src/utils')
-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 ef1aa04..fce3bec 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>>().
*/