diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-17 14:30:23 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-17 16:34:24 +0000 |
commit | 9c4d75bea581266ccfc186da4db2c04901c9f862 (patch) | |
tree | 90ed8339856f451f2bd68c09a7cd3942e9f34794 /include/o3tl | |
parent | slideshow: replace for_each with range-based for (diff) | |
download | core-9c4d75bea581266ccfc186da4db2c04901c9f862.tar.gz core-9c4d75bea581266ccfc186da4db2c04901c9f862.zip |
o3tl: remove unused code
Change-Id: Ia7bcb590ab5b535af8cacead1e8afd735c463aaf
Reviewed-on: https://gerrit.libreoffice.org/17805
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/compat_functional.hxx | 27 |
1 files changed, 1 insertions, 26 deletions
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 <utility> -#include <functional> +#include <sal/config.h> namespace o3tl { @@ -59,30 +58,6 @@ struct select2nd } }; -/// Call F1 with the result of F2 applied to the one input parameter -template<class F1, class F2> -class unary_compose : public std::unary_function<typename F2::argument_type, typename F1::result_type> -{ - 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<class F1, class F2> -inline unary_compose<F1, F2> compose1(const F1& fnction1, const F2& fnction2) -{ - return unary_compose<F1, F2>(fnction1, fnction2); -} - } // namespace o3tl #endif |