[Libreoffice-commits] core.git: include/o3tl

Thorsten Behrens Thorsten.Behrens at CIB.de
Mon Aug 17 09:34:48 PDT 2015


 include/o3tl/compat_functional.hxx |   27 +--------------------------
 1 file changed, 1 insertion(+), 26 deletions(-)

New commits:
commit 9c4d75bea581266ccfc186da4db2c04901c9f862
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Mon Aug 17 14:30:23 2015 +0200

    o3tl: remove unused code
    
    Change-Id: Ia7bcb590ab5b535af8cacead1e8afd735c463aaf
    Reviewed-on: https://gerrit.libreoffice.org/17805
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/include/o3tl/compat_functional.hxx b/include/o3tl/compat_functional.hxx
index 5220567..b1341e2 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


More information about the Libreoffice-commits mailing list