remove various crutches for boost::bind/boost::mem_fn

These aren't used any more, and the C++11 std equivalents don't use
get_pointer() overloads.

Change-Id: Ib97a6a595863e21a1621c63709ea2b28f6550fde
Reviewed-on: https://gerrit.libreoffice.org/24982
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Michael Stahl
2016-05-13 21:12:44 +02:00
parent 577b4e499b
commit efc05c0a1e
4 changed files with 0 additions and 31 deletions

View File

@@ -151,11 +151,6 @@ namespace dxcanvas
T* mp; T* mp;
}; };
// get_pointer() enables boost::mem_fn to recognize COMReference
template<class T> inline T * get_pointer(COMReference<T> const& p)
{
return p.get();
}
} }

View File

@@ -571,16 +571,6 @@ public:
inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( XInterface * pInterface ); inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( XInterface * pInterface );
}; };
/// @cond INTERNAL
/** Enables boost::mem_fn and boost::bind to recognize Reference.
*/
template <typename T>
inline T * get_pointer( Reference<T> const& r )
{
return r.get();
}
/// @endcond
} }
} }
} }

View File

@@ -343,12 +343,6 @@ int cow_wrapper_client::queryUnmodified() const
a.swap(b); a.swap(b);
} }
// to enable boost::mem_fn on cow_wrapper
template<class T, class P> inline T * get_pointer( const cow_wrapper<T,P>& r )
{
return r.get();
}
} }
#endif /* INCLUDED_O3TL_COW_WRAPPER_HXX */ #endif /* INCLUDED_O3TL_COW_WRAPPER_HXX */

View File

@@ -240,16 +240,6 @@ public:
} }
}; };
/// @cond INTERNAL
/** Enables boost::mem_fn and boost::bind to recognize Reference.
*/
template <typename T>
inline T * get_pointer( Reference<T> const& r )
{
return r.get();
}
/// @endcond
} // namespace rtl } // namespace rtl
#endif /* ! INCLUDED_RTL_REF_HXX */ #endif /* ! INCLUDED_RTL_REF_HXX */