Removed dead code

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@403 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-01-14 16:20:09 +00:00
parent d3084ecc2d
commit 1b7943865b

View file

@ -33,40 +33,6 @@ namespace mock
{
namespace detail
{
template< typename T >
T& deref( T& t )
{
return t;
}
template< typename T >
T& deref( T* t )
{
if( ! t )
throw std::invalid_argument( "derefencing null pointer" );
return *t;
}
template< typename T >
T& deref( std::auto_ptr< T >& t )
{
if( ! t.get() )
throw std::invalid_argument( "derefencing null pointer" );
return *t;
}
template< typename T >
T& deref( const std::auto_ptr< T >& t )
{
if( ! t.get() )
throw std::invalid_argument( "derefencing null pointer" );
return *t;
}
template< typename T >
T& deref( boost::shared_ptr< T > t )
{
if( ! t.get() )
throw std::invalid_argument( "derefencing null pointer" );
return *t;
}
template< typename M >
struct signature :
boost::function_types::function_type<