From 350fe112c20106e9a53fec4c2f3c0f7fdc496e3f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Jun 2021 10:00:47 +0200 Subject: remove uno::Type move constructor not necessary for the optimisation I was going for, and actually less efficient than just using the copy constructor Change-Id: I0f2019a0bf032283fb6c8d5d834603ea7a5ce3c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117762 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/com/sun/star/uno/Type.h | 4 ---- include/com/sun/star/uno/Type.hxx | 10 ---------- 2 files changed, 14 deletions(-) (limited to 'include/com') diff --git a/include/com/sun/star/uno/Type.h b/include/com/sun/star/uno/Type.h index 364d9eb5959e..5dc1b41e0bc2 100644 --- a/include/com/sun/star/uno/Type.h +++ b/include/com/sun/star/uno/Type.h @@ -119,10 +119,6 @@ public: */ inline Type( const Type & rType ); -#if defined LIBO_INTERNAL_ONLY - inline Type( Type && ); -#endif - /** Destructor: Releases acquired C type description reference. */ ~Type() diff --git a/include/com/sun/star/uno/Type.hxx b/include/com/sun/star/uno/Type.hxx index 5c95adc3bd85..f62d0a17b63a 100644 --- a/include/com/sun/star/uno/Type.hxx +++ b/include/com/sun/star/uno/Type.hxx @@ -82,16 +82,6 @@ inline Type::Type( const Type & rType ) ::typelib_typedescriptionreference_acquire( _pType ); } -#if defined LIBO_INTERNAL_ONLY -inline Type::Type( Type && rType ) - : _pType( rType._pType ) -{ - rType._pType = reinterpret_cast< const ::com::sun::star::uno::Type * >( - ::typelib_static_type_getByTypeClass( typelib_TypeClass_VOID ) )->getTypeLibType(); - ::typelib_typedescriptionreference_acquire( rType._pType ); -} -#endif - inline ::rtl::OUString Type::getTypeName() const { return ::rtl::OUString( _pType->pTypeName ); -- cgit