From 3aaaab3db773148e246f6fa48da0da4c755b65a9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Mar 2014 12:47:22 +0100 Subject: Remove unused OQueryComposer::getSomething (OQueryComposer does not actually derive from XUnoTunnel.) Change-Id: Ib0d358db2b6a87caae9bbc893dffb25e86109b85 --- dbaccess/source/core/api/querycomposer.cxx | 10 ---------- dbaccess/source/core/inc/querycomposer.hxx | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/dbaccess/source/core/api/querycomposer.cxx b/dbaccess/source/core/api/querycomposer.cxx index 1beb4c0a9baf..0e09c0a7fa73 100644 --- a/dbaccess/source/core/api/querycomposer.cxx +++ b/dbaccess/source/core/api/querycomposer.cxx @@ -108,16 +108,6 @@ Sequence< sal_Int8 > SAL_CALL OQueryComposer::getImplementationId() throw (Runti return pId->getImplementationId(); } -// com::sun::star::lang::XUnoTunnel -sal_Int64 SAL_CALL OQueryComposer::getSomething( const Sequence< sal_Int8 >& rId ) throw(RuntimeException) -{ - SAL_INFO("dbaccess", "OQueryComposer::getSomething" ); - if (rId.getLength() == 16 && 0 == memcmp(getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) - return reinterpret_cast(this); - - return 0; -} - Any SAL_CALL OQueryComposer::queryInterface( const Type & rType ) throw(RuntimeException, std::exception) { //SAL_INFO("dbaccess", "OQueryComposer::queryInterface" ); diff --git a/dbaccess/source/core/inc/querycomposer.hxx b/dbaccess/source/core/inc/querycomposer.hxx index 2f17ab1b5e97..7e1ec887bac9 100644 --- a/dbaccess/source/core/inc/querycomposer.hxx +++ b/dbaccess/source/core/inc/querycomposer.hxx @@ -64,8 +64,7 @@ namespace dbaccess // ::com::sun::star::lang::XTypeProvider virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); - // com::sun::star::lang::XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); + // ::com::sun::star::uno::XInterface virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); -- cgit