From 9c4d75bea581266ccfc186da4db2c04901c9f862 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Mon, 17 Aug 2015 14:30:23 +0200 Subject: o3tl: remove unused code Change-Id: Ia7bcb590ab5b535af8cacead1e8afd735c463aaf Reviewed-on: https://gerrit.libreoffice.org/17805 Reviewed-by: Thorsten Behrens Tested-by: Thorsten Behrens --- include/o3tl/compat_functional.hxx | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'include') diff --git a/include/o3tl/compat_functional.hxx b/include/o3tl/compat_functional.hxx index 522056740e9f..b1341e2112b7 100644 --- a/include/o3tl/compat_functional.hxx +++ b/include/o3tl/compat_functional.hxx @@ -32,8 +32,7 @@ #ifndef INCLUDED_O3TL_COMPAT_FUNCTIONAL_HXX #define INCLUDED_O3TL_COMPAT_FUNCTIONAL_HXX -#include -#include +#include namespace o3tl { @@ -59,30 +58,6 @@ struct select2nd } }; -/// Call F1 with the result of F2 applied to the one input parameter -template -class unary_compose : public std::unary_function -{ - public: - unary_compose(const F1& fnction1, const F2& fnction2) : ftor1(fnction1), ftor2(fnction2) {} - - typename F1::result_type operator()(const typename F2::argument_type& y) const - { - return ftor1(ftor2(y)); - } - - protected: - F1 ftor1; - F2 ftor2; -}; - -/// Create functor that calls F1 with the result of F2 applied to the one input parameter -template -inline unary_compose compose1(const F1& fnction1, const F2& fnction2) -{ - return unary_compose(fnction1, fnction2); -} - } // namespace o3tl #endif -- cgit