From 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 Jan 2016 15:17:30 +0200 Subject: loplugin:unusedmethods Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e Reviewed-on: https://gerrit.libreoffice.org/21603 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/firebird/ResultSet.hxx | 5 ----- connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx | 12 ------------ connectivity/source/inc/file/FResultSet.hxx | 5 ----- connectivity/source/inc/java/sql/DriverPropertyInfo.hxx | 3 +-- 4 files changed, 1 insertion(+), 24 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx index c60a0a8fbc78..dd9a89704f36 100644 --- a/connectivity/source/drivers/firebird/ResultSet.hxx +++ b/connectivity/source/drivers/firebird/ResultSet.hxx @@ -128,11 +128,6 @@ namespace connectivity isc_stmt_handle& aStatementHandle, XSQLDA* aSqlda); - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *() - { - return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*static_cast(this)); - } - // XInterface virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType) diff --git a/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx b/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx index 16d46f5efcc4..12e33af13cfa 100644 --- a/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx +++ b/connectivity/source/drivers/jdbc/DriverPropertyInfo.cxx @@ -48,18 +48,6 @@ jclass java_sql_DriverPropertyInfo::getMyClass() const } -java_sql_DriverPropertyInfo::operator css::sdbc::DriverPropertyInfo() -{ - css::sdbc::DriverPropertyInfo aInfo; - aInfo.Name = name(); - aInfo.Description = description(); - aInfo.IsRequired = required(); - aInfo.Value = value(); - aInfo.Choices = choices(); - - return aInfo; -} - OUString java_sql_DriverPropertyInfo::name() { OUString aStr; diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index 0eaeedd03359..f773f6639202 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -163,11 +163,6 @@ namespace connectivity // a Constructor, that is needed for when Returning the Object is needed: OResultSet( OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator); - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *() - { - return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*static_cast(this)); - } - // ::cppu::OComponentHelper virtual void SAL_CALL disposing() override; // XInterface diff --git a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx index ae3bd12db559..3380ef5bd05c 100644 --- a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx +++ b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx @@ -39,13 +39,12 @@ namespace connectivity virtual ~java_sql_DriverPropertyInfo(); // A ctor that is needed for returning the object java_sql_DriverPropertyInfo( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){} - operator ::com::sun::star::sdbc::DriverPropertyInfo(); OUString name(); OUString description(); OUString value(); bool required(); - ::com::sun::star::uno::Sequence< OUString> choices(); + ::com::sun::star::uno::Sequence< OUString> choices(); }; } -- cgit