[Libreoffice-commits] core.git: dbaccess/source include/svx include/vcl svx/source vcl/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 20 14:06:21 UTC 2020
dbaccess/source/ui/browser/dbexchange.cxx | 30 ------------------------------
dbaccess/source/ui/inc/QueryTextView.hxx | 2 --
dbaccess/source/ui/inc/dbexchange.hxx | 17 -----------------
include/svx/dbaobjectex.hxx | 7 -------
include/vcl/edit.hxx | 1 -
include/vcl/toolkit/vclmedit.hxx | 1 -
svx/source/fmcomp/dbaobjectex.cxx | 7 -------
vcl/source/control/edit.cxx | 4 ----
vcl/source/edit/vclmedit.cxx | 5 -----
9 files changed, 74 deletions(-)
New commits:
commit 901add54cd5191b5a41ec11baddd669954c34025
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Aug 20 13:41:06 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Aug 20 16:05:40 2020 +0200
loplugin:unusedmethods
Change-Id: Ic3690d7f2a075d47ffed3db03ee6895ebdab441e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101070
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/dbaccess/source/ui/browser/dbexchange.cxx b/dbaccess/source/ui/browser/dbexchange.cxx
index a6d649674f07..d9358ec776ad 100644
--- a/dbaccess/source/ui/browser/dbexchange.cxx
+++ b/dbaccess/source/ui/browser/dbexchange.cxx
@@ -62,36 +62,6 @@ namespace dbaui
{
}
- ODataClipboard::ODataClipboard(
- const OUString& _rDatasource,
- const sal_Int32 _nCommandType,
- const OUString& _rCommand,
- const Reference< XConnection >& _rxConnection,
- const Reference< XNumberFormatter >& _rxFormatter,
- const Reference< XComponentContext >& _rxORB)
- :ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand, _rxConnection )
- {
- osl_atomic_increment( &m_refCount );
- lcl_setListener( _rxConnection, this, true );
-
- m_pHtml.set( new OHTMLImportExport( getDescriptor(), _rxORB, _rxFormatter ) );
- m_pRtf.set( new ORTFImportExport( getDescriptor(), _rxORB, _rxFormatter ) );
-
- osl_atomic_decrement( &m_refCount );
- }
-
- ODataClipboard::ODataClipboard(
- const OUString& _rDatasource,
- const sal_Int32 _nCommandType,
- const OUString& _rCommand,
- const Reference< XNumberFormatter >& _rxFormatter,
- const Reference< XComponentContext >& _rxORB)
- :ODataAccessObjectTransferable( _rDatasource, _nCommandType, _rCommand)
- {
- m_pHtml.set( new OHTMLImportExport( getDescriptor(),_rxORB, _rxFormatter ) );
- m_pRtf.set( new ORTFImportExport( getDescriptor(),_rxORB, _rxFormatter ) );
- }
-
void ODataClipboard::Update(
const OUString& rDatasource,
const sal_Int32 nCommandType,
diff --git a/dbaccess/source/ui/inc/QueryTextView.hxx b/dbaccess/source/ui/inc/QueryTextView.hxx
index e472c8dad8c7..dcce2e80102e 100644
--- a/dbaccess/source/ui/inc/QueryTextView.hxx
+++ b/dbaccess/source/ui/inc/QueryTextView.hxx
@@ -64,8 +64,6 @@ namespace dbaui
void stopTimer();
void startTimer();
-
- OQueryContainerWindow* getContainerWindow() { return static_cast< OQueryContainerWindow* >( GetParent() ); }
};
}
diff --git a/dbaccess/source/ui/inc/dbexchange.hxx b/dbaccess/source/ui/inc/dbexchange.hxx
index 13b3e18503bb..e288186c391e 100644
--- a/dbaccess/source/ui/inc/dbexchange.hxx
+++ b/dbaccess/source/ui/inc/dbexchange.hxx
@@ -45,23 +45,6 @@ namespace dbaui
public:
ODataClipboard();
- ODataClipboard(
- const OUString& _rDatasource,
- const sal_Int32 _nCommandType,
- const OUString& _rCommand,
- const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
- const css::uno::Reference< css::util::XNumberFormatter >& _rxFormatter,
- const css::uno::Reference< css::uno::XComponentContext >& _rxORB
- );
-
- ODataClipboard(
- const OUString& _rDatasource,
- const sal_Int32 _nCommandType,
- const OUString& _rCommand,
- const css::uno::Reference< css::util::XNumberFormatter >& _rxFormatter,
- const css::uno::Reference< css::uno::XComponentContext >& _rxORB
- );
-
ODataClipboard(
const css::uno::Reference< css::beans::XPropertySet >& i_rAliveForm,
const css::uno::Sequence< css::uno::Any >& i_rSelectedRows,
diff --git a/include/svx/dbaobjectex.hxx b/include/svx/dbaobjectex.hxx
index d570fac7f5b3..2a0d243cce0a 100644
--- a/include/svx/dbaobjectex.hxx
+++ b/include/svx/dbaobjectex.hxx
@@ -32,13 +32,6 @@ namespace svx
class SAL_WARN_UNUSED SVX_DLLPUBLIC OComponentTransferable final : public TransferDataContainer
{
public:
- /** construct the transferable
- */
- OComponentTransferable(
- const OUString& rDatasourceOrLocation,
- const css::uno::Reference< css::ucb::XContent>& xContent
- );
-
OComponentTransferable();
void Update(
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx
index 0ad6203a10e9..eea49d559338 100644
--- a/include/vcl/edit.hxx
+++ b/include/vcl/edit.hxx
@@ -164,7 +164,6 @@ public:
static bool IsCharInput( const KeyEvent& rKEvt );
virtual void SetModifyFlag();
- virtual void ClearModifyFlag();
void SetEchoChar( sal_Unicode c );
sal_Unicode GetEchoChar() const { return mcEchoChar; }
diff --git a/include/vcl/toolkit/vclmedit.hxx b/include/vcl/toolkit/vclmedit.hxx
index da38a5bbcb57..c7e0a991191f 100644
--- a/include/vcl/toolkit/vclmedit.hxx
+++ b/include/vcl/toolkit/vclmedit.hxx
@@ -110,7 +110,6 @@ public:
virtual void Modify() override;
virtual void SetModifyFlag() override;
- virtual void ClearModifyFlag() override;
virtual void SetReadOnly( bool bReadOnly = true ) override;
virtual bool IsReadOnly() const override;
diff --git a/svx/source/fmcomp/dbaobjectex.cxx b/svx/source/fmcomp/dbaobjectex.cxx
index 0d084193dd87..58fbce666342 100644
--- a/svx/source/fmcomp/dbaobjectex.cxx
+++ b/svx/source/fmcomp/dbaobjectex.cxx
@@ -39,13 +39,6 @@ namespace svx
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::datatransfer;
- OComponentTransferable::OComponentTransferable(const OUString& _rDatasourceOrLocation
- ,const Reference< XContent>& _xContent)
- {
- m_aDescriptor.setDataSource(_rDatasourceOrLocation);
- m_aDescriptor[DataAccessDescriptorProperty::Component] <<= _xContent;
- }
-
OComponentTransferable::OComponentTransferable()
{
}
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index bd4a2aa20c38..91ee92f89029 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2585,10 +2585,6 @@ void Edit::SetModifyFlag()
{
}
-void Edit::ClearModifyFlag()
-{
-}
-
void Edit::SetSubEdit(Edit* pEdit)
{
mpSubEdit.disposeAndClear();
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 87e889c96973..c5fc8b52715f 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1028,11 +1028,6 @@ void VclMultiLineEdit::SetModifyFlag()
pImpVclMEdit->SetModified( true );
}
-void VclMultiLineEdit::ClearModifyFlag()
-{
- pImpVclMEdit->SetModified( false );
-}
-
void VclMultiLineEdit::SetReadOnly( bool bReadOnly )
{
pImpVclMEdit->SetReadOnly( bReadOnly );
More information about the Libreoffice-commits
mailing list