summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorThorsten Behrens <thb@documentfoundation.org>2014-04-15 21:36:02 +0200
committerThorsten Behrens <thb@documentfoundation.org>2014-04-15 21:57:56 +0200
commit7e6628f374cdb87631b54ccdafd69554eda9536e (patch)
treece9dc17a25ce93aa0799e7e85f2d834a0c9887b5 /include/o3tl
parent3764cfbc69815e5e74a689a5aeb07b0668ee861f (diff)
Unused code: binary_compose, identity
Seems noone is using those anymore. Change-Id: I63f775d391c58753e89549dbcae8739708395487
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/compat_functional.hxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/include/o3tl/compat_functional.hxx b/include/o3tl/compat_functional.hxx
index 0484060bedb8..6dff02bc7b74 100644
--- a/include/o3tl/compat_functional.hxx
+++ b/include/o3tl/compat_functional.hxx
@@ -37,16 +37,6 @@
namespace o3tl
{
-/// Identity functor - return the input value
-template<class T>
-struct identity : public std::unary_function<T, T>
-{
- T operator()(const T& y) const
- {
- return (y);
- }
-};
-
/// Functor, given two parameters, return the first
template<class T1,class T2>
struct project1st : public std::binary_function<T1, T2, T1>
@@ -111,31 +101,6 @@ inline unary_compose<F1, F2> compose1(const F1& fnction1, const F2& fnction2)
return (unary_compose<F1, F2>(fnction1, fnction2));
}
-/// Calls F2 and F3 for the two args of F1, respectively
-template<class F1, class F2, class F3>
-class binary_compose : public std::unary_function<typename F2::argument_type,typename F1::result_type>
-{
- public:
- binary_compose(const F1& fnction1, const F2& fnction2, const F3& fnction3) : ftor1(fnction1), ftor2(fnction2), ftor3(fnction3) {}
-
- typename F1::result_type operator()(const typename F2::argument_type& y) const
- {
- return (ftor1(ftor2(y), ftor3(y)));
- }
-
- protected:
- F1 ftor1;
- F2 ftor2;
- F3 ftor3;
-};
-
-/// Creates functor that calls F2 and F3 for the two args of F1, respectively
-template<class F1, class F2, class F3>
-inline binary_compose<F1, F2, F3> compose2(const F1& fnction1, const F2& fnction2, const F3& fnction3)
-{
- return (binary_compose<F1, F2, F3>(fnction1, fnction2, fnction3));
-}
-
} // namespace o3tl
#endif