]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.C
Continue to improve GtkLengthEntry
[lyx.git] / src / BranchList.C
index dc09595841052b5a563f02b0df1b9842747e960b..6d89551b74c9c8235155327d46d387c744d63bac 100644 (file)
 #include <config.h>
 
 #include "BranchList.h"
+#include <algorithm>
 
 using std::string;
 
-namespace {
-
-class BranchNamesEqual : public std::unary_function<Branch, bool> {
-public:
-       BranchNamesEqual(string const & name)
-               : name_(name) {}
-       bool operator()(Branch const & branch) const
-       {
-               return branch.getBranch() == name_;
-       }
-private:
-       string name_;
-};
-
-} // namespace anon
-
 
 string const & Branch::getBranch() const
 {