chart2/source/inc/WeakListenerAdapter.hxx | 3 --- include/sfx2/thumbnailview.hxx | 2 -- include/svx/ctredlin.hxx | 2 -- sc/inc/document.hxx | 4 ---- sc/inc/table.hxx | 2 -- sc/source/core/inc/bcaslot.hxx | 7 ------- svx/source/dialog/ctredlin.cxx | 8 -------- 7 files changed, 28 deletions(-)
New commits: commit 7619bd3a386dfed2e03e257f42a543e1e7be76ef Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Mar 22 21:51:54 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Mar 23 11:03:52 2022 +0100 loplugin:unusedmethods Change-Id: I59c9e52997e80174a3aa7f81bacdfb29e47be0a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131952 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/chart2/source/inc/WeakListenerAdapter.hxx b/chart2/source/inc/WeakListenerAdapter.hxx index 9df1e146125d..fe693668a3e8 100644 --- a/chart2/source/inc/WeakListenerAdapter.hxx +++ b/chart2/source/inc/WeakListenerAdapter.hxx @@ -47,9 +47,6 @@ public: explicit WeakListenerAdapter( const css::uno::Reference< Listener > & xListener ) : m_xListener( xListener ) {} - explicit WeakListenerAdapter( const css::uno::WeakReference< Listener > & xListener ) : - m_xListener( xListener ) - {} protected: // ____ XEventListener (base of all listeners) ____ diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index 1922270f413f..bbdee870ac52 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -238,8 +238,6 @@ public: static BitmapEx readThumbnail(const OUString &msURL); - tools::Long ItemHeight() const { return mnItemHeight; }; - protected: virtual bool KeyInput( const KeyEvent& rKEvt ) override; diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx index 1a95c88320dc..84cf456cb58a 100644 --- a/include/svx/ctredlin.hxx +++ b/include/svx/ctredlin.hxx @@ -102,8 +102,6 @@ public: SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl, std::unique_ptr<weld::TreeView> xCalcControl); - void set_size_request(int nWidth, int nHeight); - weld::TreeView& GetWidget() { return *pTreeView; } bool IsSorted() const { return bSorted; } diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 226583afe567..d5df933e1cfc 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -825,11 +825,7 @@ public: // is to avoid checking unallocated columns if they don't have attributes set, so this is // never less than ClampToAllocatedColumns(). SCCOL ClampToMaxNonDefPatternColumn(SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2) const; - SCCOL ClampToMaxNonDefPatternColumn(SCTAB nTab, SCCOL nCol) const - { return ClampToMaxNonDefPatternColumn(nTab, nCol, 0, MaxRow()); } SCCOL GetMaxNonDefPatternColumnsCount(SCTAB nTab, SCROW nRow1, SCROW nRow2) const; - SCCOL GetMaxNonDefPatternColumnsCount(SCTAB nTab) const - { return GetMaxNonDefPatternColumnsCount(nTab, 0, MaxRow()); } SC_DLLPUBLIC ScDBCollection* GetDBCollection() const { return pDBCollection.get();} void SetDBCollection( std::unique_ptr<ScDBCollection> pNewDBCollection, diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 623c9fe32a70..58fb6c4a45ad 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -1108,8 +1108,6 @@ public: SCCOL ClampToMaxNonDefPatternColumn(SCCOL nCol) const { return ClampToMaxNonDefPatternColumn(nCol, 0, rDocument.MaxRow()); } SCCOL GetMaxNonDefPatternColumnsCount(SCROW nRow1, SCROW nRow2) const; - SCCOL GetMaxNonDefPatternColumnsCount() const - { return GetMaxNonDefPatternColumnsCount(0, rDocument.MaxRow()); } /** * Serializes the sheet's geometry data. diff --git a/sc/source/core/inc/bcaslot.hxx b/sc/source/core/inc/bcaslot.hxx index b3b5155cae4a..c77a1173c7e3 100644 --- a/sc/source/core/inc/bcaslot.hxx +++ b/sc/source/core/inc/bcaslot.hxx @@ -266,13 +266,6 @@ private: ~TableSlots(); ScBroadcastAreaSlot** getSlots() { return ppSlots.get(); } - /** - Obtain slot pointer, no check on validity! It is assumed that - all calls are made with the results of ComputeSlotOffset(), - ComputeAreaPoints() and ComputeNextSlot() - */ - ScBroadcastAreaSlot* getAreaSlot( SCSIZE nOff ) { return ppSlots[nOff]; } - private: SCSIZE mnBcaSlots; std::unique_ptr<ScBroadcastAreaSlot*[]> ppSlots; diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 7e080fa4a054..3a0f1e32e0a3 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -82,14 +82,6 @@ SvxRedlinTable::SvxRedlinTable(std::unique_ptr<weld::TreeView> xWriterControl, } } -void SvxRedlinTable::set_size_request(int nWidth, int nHeight) -{ - if (xWriterTreeView) - xWriterTreeView->set_size_request(nWidth, nHeight); - if (xCalcTreeView) - xCalcTreeView->set_size_request(nWidth, nHeight); -} - SvxRedlinTable::~SvxRedlinTable() { }