diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-28 08:39:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-30 06:23:00 +0000 |
commit | a45827b2308febc7369db27fb489a6d1389534e1 (patch) | |
tree | 0b697341738010da35bd0a6a6189ef6761e5db0a /dbaccess/source | |
parent | 2387c2a46e15995686d28dccdfd455012072b4cf (diff) |
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971
Reviewed-on: https://gerrit.libreoffice.org/17378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/api/OptimisticSet.hxx | 3 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetBase.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.hxx | 4 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetCacheIterator.hxx | 1 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/ModelImpl.hxx | 5 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/bookmarkcontainer.cxx | 11 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/bookmarkcontainer.hxx | 6 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/datasource.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/documentdefinition.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/documentdefinition.hxx | 18 | ||||
-rw-r--r-- | dbaccess/source/core/inc/TableDeco.hxx | 1 |
11 files changed, 0 insertions, 54 deletions
diff --git a/dbaccess/source/core/api/OptimisticSet.hxx b/dbaccess/source/core/api/OptimisticSet.hxx index fbcd33df42a5..abfde43c4a8d 100644 --- a/dbaccess/source/core/api/OptimisticSet.hxx +++ b/dbaccess/source/core/api/OptimisticSet.hxx @@ -42,8 +42,6 @@ namespace dbaccess mutable bool m_bResultSetChanged; - void impl_convertValue_throw(const ORowSetRow& _rInsertRow,const SelectColumnDescription& i_aMetaData); - void executeDelete(const ORowSetRow& _rDeleteRow,const OUString& i_sSQL,const OUString& i_sTableName); void fillJoinedColumns_throw(const ::std::vector< ::connectivity::TNodePair>& i_aJoinColumns); void fillJoinedColumns_throw(const OUString& i_sLeftColumn,const OUString& i_sRightColumn); @@ -74,7 +72,6 @@ namespace dbaccess virtual void fillMissingValues(ORowSetValueVector::Vector& io_aRow) const SAL_OVERRIDE; bool isReadOnly() const { return m_aJoinedKeyColumns.empty(); } - const ::std::map<sal_Int32,sal_Int32>& getJoinedColumns() const { return m_aJoinedColumns; } const ::std::map<sal_Int32,sal_Int32>& getJoinedKeyColumns() const { return m_aJoinedKeyColumns; } }; } diff --git a/dbaccess/source/core/api/RowSetBase.hxx b/dbaccess/source/core/api/RowSetBase.hxx index f5dd9541f511..e2bd50bd209e 100644 --- a/dbaccess/source/core/api/RowSetBase.hxx +++ b/dbaccess/source/core/api/RowSetBase.hxx @@ -346,8 +346,6 @@ namespace dbaccess firePropertyChange(_nPos,_rNewValue); } using ::comphelper::OPropertyStateContainer::getFastPropertyValue; - - ::osl::Mutex* getMutex() const { return m_pMutex; } }; /** eases the handling of the doCancelModification and notifyCancelInsert methods diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx index 16912acac60b..f158da4baa89 100644 --- a/dbaccess/source/core/api/RowSetCache.hxx +++ b/dbaccess/source/core/api/RowSetCache.hxx @@ -100,10 +100,6 @@ namespace dbaccess bool reFillMatrix(sal_Int32 _nNewStartPos,sal_Int32 nNewEndPos); bool fillMatrix(sal_Int32 &_nNewStartPos,sal_Int32 &_nNewEndPos); bool moveWindow(); - // returns true when a keyset needs to be created. - bool impl_createBookmarkSet_nothrow(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet >& _xRs); - - void firePropertyChange(sal_Int32 _nColumnIndex,const ::connectivity::ORowSetValue& _rOldValue); void rotateCacheIterator(ORowSetMatrix::difference_type _nDist); void updateValue(sal_Int32 columnIndex diff --git a/dbaccess/source/core/api/RowSetCacheIterator.hxx b/dbaccess/source/core/api/RowSetCacheIterator.hxx index 82d118e499a2..4875c0cd2240 100644 --- a/dbaccess/source/core/api/RowSetCacheIterator.hxx +++ b/dbaccess/source/core/api/RowSetCacheIterator.hxx @@ -72,7 +72,6 @@ namespace dbaccess bool operator ==(const ORowSetMatrix::iterator& _rRH) const; void setBookmark(const ::com::sun::star::uno::Any& _rBookmark); - ::com::sun::star::uno::Any getBookmark() const { return m_aIter->second.aBookmark; } ORowSetCacheMap::iterator getIter() const { return m_aIter; } }; diff --git a/dbaccess/source/core/dataaccess/ModelImpl.hxx b/dbaccess/source/core/dataaccess/ModelImpl.hxx index e08671541d1f..7830567e8635 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.hxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.hxx @@ -311,7 +311,6 @@ public: stripLoadArguments( const ::comphelper::NamedValueCollection& _rArguments ); // other stuff - void flushTables(); // disposes all elements in m_aStorages, and clears it void disposeStorages(); @@ -533,10 +532,6 @@ public: { return getMutex(); } - inline ::rtl::Reference< ODatabaseModelImpl > getImpl( GuardAccess ) const - { - return m_pImpl; - } /// checks whether the component is already disposed, throws a DisposedException if so inline void checkDisposed() const diff --git a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx index 881fe8b832e0..05faa3668652 100644 --- a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx +++ b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx @@ -52,18 +52,7 @@ OBookmarkContainer::OBookmarkContainer(OWeakObject& _rParent, Mutex& _rMutex) { } -void OBookmarkContainer::dispose() -{ - MutexGuard aGuard(m_rMutex); - // say goodbye to our listeners - EventObject aEvt(*this); - m_aContainerListeners.disposeAndClear(aEvt); - - // remove our elements - m_aBookmarksIndexed.clear(); - m_aBookmarks.clear(); -} void SAL_CALL OBookmarkContainer::acquire( ) throw() { diff --git a/dbaccess/source/core/dataaccess/bookmarkcontainer.hxx b/dbaccess/source/core/dataaccess/bookmarkcontainer.hxx index 6f88eff0b2ed..083482aaf220 100644 --- a/dbaccess/source/core/dataaccess/bookmarkcontainer.hxx +++ b/dbaccess/source/core/dataaccess/bookmarkcontainer.hxx @@ -123,12 +123,6 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; -// helper - /** tell the container to free all resources. After that it's in a state like after the construction, i.e. - you may call <code>initialize</code> again (maybe with another configuration node). - */ - void dispose(); - protected: /** quickly checks if there already is an element with a given name. No access to the configuration occurs, i.e. if there is such an object which is not already loaded, it won't be loaded now. diff --git a/dbaccess/source/core/dataaccess/datasource.hxx b/dbaccess/source/core/dataaccess/datasource.hxx index ff4d3385ed19..8e53e9facd73 100644 --- a/dbaccess/source/core/dataaccess/datasource.hxx +++ b/dbaccess/source/core/dataaccess/datasource.hxx @@ -211,8 +211,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection( const OUString& user, const OUString& password , bool _bIsolated) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception); ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connectWithCompletion( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& handler , bool _bIsolated) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); - void clearConnections(); - protected: using ::cppu::OPropertySetHelper::getFastPropertyValue; }; diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index d0d9695457bc..5bd28795a85f 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.cxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx @@ -489,7 +489,6 @@ css::uno::Sequence<sal_Int8> ODocumentDefinition::getImplementationId() IMPLEMENT_GETTYPES3(ODocumentDefinition,OContentHelper,OPropertyStateContainer,ODocumentDefinition_Base); IMPLEMENT_FORWARD_XINTERFACE3( ODocumentDefinition,OContentHelper,OPropertyStateContainer,ODocumentDefinition_Base) -IMPLEMENT_SERVICE_INFO1(ODocumentDefinition,"com.sun.star.comp.dba.ODocumentDefinition",SERVICE_SDB_DOCUMENTDEFINITION) void ODocumentDefinition::registerProperties() { diff --git a/dbaccess/source/core/dataaccess/documentdefinition.hxx b/dbaccess/source/core/dataaccess/documentdefinition.hxx index 60616d2f1cb3..2f1f9958b6df 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.hxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.hxx @@ -97,9 +97,6 @@ public: // ::com::sun::star::uno::XInterface DECLARE_XINTERFACE( ) -// ::com::sun::star::lang::XServiceInfo - DECLARE_SERVICE_INFO_STATIC(); - // ::com::sun::star::beans::XPropertySet virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -169,8 +166,6 @@ public: */ bool prepareClose(); - static ::com::sun::star::uno::Sequence< sal_Int8 > getDefaultDocumentTypeClassId(); - static OUString GetDocumentServiceFromMediaType( const OUString& _rMediaType, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & _rxContext, @@ -294,19 +289,6 @@ private: const bool _bReadOnly ); - /** loads the embedded object, if not already loaded. No new object can be created with this method. - */ - void loadEmbeddedObject( bool _bSuppressMacros = false ) - { - loadEmbeddedObject( - NULL, - ::com::sun::star::uno::Sequence< sal_Int8 >(), - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >(), - _bSuppressMacros, - false - ); - } - /** loads the embedded object for preview. Macros will be suppressed, and the document will be read-only. */ diff --git a/dbaccess/source/core/inc/TableDeco.hxx b/dbaccess/source/core/inc/TableDeco.hxx index 3fdfb7f274ec..3bd7179f2ee2 100644 --- a/dbaccess/source/core/inc/TableDeco.hxx +++ b/dbaccess/source/core/inc/TableDeco.hxx @@ -151,7 +151,6 @@ namespace dbaccess static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId(); ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData() const { return m_xMetaData; } - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection() const { return m_xMetaData.is() ? m_xMetaData->getConnection() : ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>(); } // XColumnsSupplier virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getColumns( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; |