From 5b32d72db8fdb2ee81c8770a75678e8e7ad0201e Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 9 Jan 2013 17:49:43 +0100 Subject: Removed unused functor obj_name_is --- src/utils/functors.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/utils') 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 @@ -28,26 +28,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 -struct obj_name_is - : public std::binary_function -{ - 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>>(). -- cgit