diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-23 13:17:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-23 19:02:25 +0100 |
commit | ba20fcaa257f4ce8491e4303c0e05dc5460c18fe (patch) | |
tree | 82e1e86effeac30a1ea0156eaba581ad804f302c /dbaccess | |
parent | 804dd3e3761fe94e139384c4fdf765da0256f0fd (diff) |
loplugin:unusedmethods
Change-Id: Ie0534244cc7a30ad006e65baf125c59757c90d50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111388
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/inc/TableRow.hxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/imageprovider.hxx | 16 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/imageprovider.cxx | 9 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableRow.cxx | 9 |
4 files changed, 0 insertions, 35 deletions
diff --git a/dbaccess/source/ui/inc/TableRow.hxx b/dbaccess/source/ui/inc/TableRow.hxx index b5c12600aa8b..fe1852fb2032 100644 --- a/dbaccess/source/ui/inc/TableRow.hxx +++ b/dbaccess/source/ui/inc/TableRow.hxx @@ -38,7 +38,6 @@ namespace dbaui protected: public: OTableRow(); - OTableRow(const css::uno::Reference< css::beans::XPropertySet >& xAffectedCol); OTableRow( const OTableRow& rRow, tools::Long nPosition = -1 ); ~OTableRow(); diff --git a/dbaccess/source/ui/inc/imageprovider.hxx b/dbaccess/source/ui/inc/imageprovider.hxx index 8841a49361a9..d2719a59b657 100644 --- a/dbaccess/source/ui/inc/imageprovider.hxx +++ b/dbaccess/source/ui/inc/imageprovider.hxx @@ -77,22 +77,6 @@ namespace dbaui css::uno::Reference<css::graphic::XGraphic> getXGraphic(const OUString& _rName, const sal_Int32 _nDatabaseObjectType); - /** returns the default image to be used for a database object - - In opposite to getImageId, this method does not check the concrete object - for its image, but returns a default image to be used for all objects of the given - type. - - @param _nDatabaseObjectType - the type of the object. Must be one of the css.sdb.application.DatabaseObject - constants. - @return - the image to be used for the object type. - */ - static Image getDefaultImage( - sal_Int32 _nDatabaseObjectType - ); - /** returns the resource ID for the default image to be used for a database object In opposite to getImageId, this method does not check the concrete object diff --git a/dbaccess/source/ui/misc/imageprovider.cxx b/dbaccess/source/ui/misc/imageprovider.cxx index 20a294f83785..b69ec70e6a80 100644 --- a/dbaccess/source/ui/misc/imageprovider.cxx +++ b/dbaccess/source/ui/misc/imageprovider.cxx @@ -143,15 +143,6 @@ namespace dbaui return xGraphic; } - Image ImageProvider::getDefaultImage( sal_Int32 _nDatabaseObjectType ) - { - Image aObjectImage; - OUString sImageResourceID( getDefaultImageResourceID( _nDatabaseObjectType) ); - if (!sImageResourceID.isEmpty()) - aObjectImage = Image(StockImage::Yes, sImageResourceID); - return aObjectImage; - } - OUString ImageProvider::getDefaultImageResourceID( sal_Int32 _nDatabaseObjectType) { OUString sImageResourceID; diff --git a/dbaccess/source/ui/tabledesign/TableRow.cxx b/dbaccess/source/ui/tabledesign/TableRow.cxx index 8b91f11b287c..54c6f3b48aec 100644 --- a/dbaccess/source/ui/tabledesign/TableRow.cxx +++ b/dbaccess/source/ui/tabledesign/TableRow.cxx @@ -35,15 +35,6 @@ OTableRow::OTableRow() { } -OTableRow::OTableRow(const Reference< XPropertySet >& xAffectedCol) - :m_pActFieldDescr( nullptr ) - ,m_nPos( -1 ) - ,m_bReadOnly( false ) - ,m_bOwnsDescriptions(true) -{ - m_pActFieldDescr = new OFieldDescription(xAffectedCol); -} - OTableRow::OTableRow( const OTableRow& rRow, tools::Long nPosition ) :m_pActFieldDescr(nullptr) ,m_nPos( nPosition ) |