chart2/source/inc/DataSeries.hxx | 1 - chart2/source/model/main/DataSeries.cxx | 5 ----- cui/source/inc/MacroManagerDialog.hxx | 4 ---- cui/source/inc/cfgutil.hxx | 1 - include/svx/annotation/Annotation.hxx | 1 - include/svx/xfltrit.hxx | 1 - include/vcl/abstdlg.hxx | 12 ------------ svx/source/annotation/Annotation.cxx | 6 ------ sw/inc/tox.hxx | 1 - sw/source/core/inc/doctxm.hxx | 4 ---- sw/source/core/inc/pagefrm.hxx | 1 - sw/source/uibase/sidebar/ThemePanel.hxx | 1 - vcl/inc/salvtables.hxx | 1 - 13 files changed, 39 deletions(-)
New commits: commit bc8765cd9f667683f84368e2ac293eb1247be6d6 Author: Noel Grandin <[email protected]> AuthorDate: Tue Dec 23 11:21:48 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Dec 23 17:12:09 2025 +0100 loplugin:unusedmethods Change-Id: Ib11352e8abb69b0923a19005f5eb1d4a0c748107 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196155 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/chart2/source/inc/DataSeries.hxx b/chart2/source/inc/DataSeries.hxx index b6ac352e308b..373a50fbff85 100644 --- a/chart2/source/inc/DataSeries.hxx +++ b/chart2/source/inc/DataSeries.hxx @@ -134,7 +134,6 @@ public: void setData( const tDataSequenceContainer& aData ); const tDataSequenceContainer & getDataSequences2() const { return m_aDataSequences; } - void addDataSequence(css::uno::Reference<css::chart2::data::XLabeledDataSequence> const& rSequence); typedef std::vector< rtl::Reference< ::chart::RegressionCurveModel > > diff --git a/chart2/source/model/main/DataSeries.cxx b/chart2/source/model/main/DataSeries.cxx index 0b7461043810..04526adea5ad 100644 --- a/chart2/source/model/main/DataSeries.cxx +++ b/chart2/source/model/main/DataSeries.cxx @@ -420,11 +420,6 @@ void DataSeries::setData( const std::vector< uno::Reference< chart2::data::XLabe fireModifyEvent(); } -void DataSeries::addDataSequence(css::uno::Reference<css::chart2::data::XLabeledDataSequence> const& rSequence) -{ - m_aDataSequences.push_back(rSequence); -} - // ____ XDataSource ____ Sequence< Reference< chart2::data::XLabeledDataSequence > > SAL_CALL DataSeries::getDataSequences() { diff --git a/cui/source/inc/MacroManagerDialog.hxx b/cui/source/inc/MacroManagerDialog.hxx index a95c10ed0312..61a2cc279ea5 100644 --- a/cui/source/inc/MacroManagerDialog.hxx +++ b/cui/source/inc/MacroManagerDialog.hxx @@ -93,10 +93,6 @@ public: m_xTreeView->set_image(*m_xScratchIter, rImage); } int n_children() const { return m_xTreeView->n_children(); } - std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pOrig = nullptr) const - { - return m_xTreeView->make_iterator(pOrig); - } OUString get_id(const weld::TreeIter& rIter) const { return m_xTreeView->get_id(rIter); } std::unique_ptr<weld::TreeIter> get_selected() const { return m_xTreeView->get_selected(); } OUString get_selected_id() const diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx index b92d82449589..746a3c1d4f3c 100644 --- a/cui/source/inc/cfgutil.hxx +++ b/cui/source/inc/cfgutil.hxx @@ -149,7 +149,6 @@ public: void remove(const weld::TreeIter& rIter) { m_xTreeView->remove(rIter); } void expand_row(const weld::TreeIter& rIter) { m_xTreeView->expand_row(rIter); } int n_children() const { return m_xTreeView->n_children(); } - std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pOrig = nullptr) const { return m_xTreeView->make_iterator(pOrig); } bool iter_has_child(const weld::TreeIter& rIter) const { return m_xTreeView->iter_has_child(rIter); } OUString get_text(int nPos) const { return m_xTreeView->get_text(nPos); } OUString get_id(const weld::TreeIter& rIter) const { return m_xTreeView->get_id(rIter); } diff --git a/include/svx/annotation/Annotation.hxx b/include/svx/annotation/Annotation.hxx index d3810a50cdd3..0effccfc1022 100644 --- a/include/svx/annotation/Annotation.hxx +++ b/include/svx/annotation/Annotation.hxx @@ -148,7 +148,6 @@ public: virtual void disposing(std::unique_lock<std::mutex>& rGuard) override; OUString GetText(); - void SetText(OUString const& rText); OString ToJSON(CommentNotificationType nType); void toData(AnnotationData& rData); diff --git a/include/svx/xfltrit.hxx b/include/svx/xfltrit.hxx index 68c5b81dc9ac..d897b8f4ced9 100644 --- a/include/svx/xfltrit.hxx +++ b/include/svx/xfltrit.hxx @@ -47,7 +47,6 @@ public: virtual boost::property_tree::ptree dumpAsJSON() const override; sal_uInt16 GetValue() const { return m_nValue; } - void SetValue(sal_uInt16 nTheValue) { ASSERT_CHANGE_REFCOUNTED_ITEM; assert(nTheValue <= 100); m_nValue = nTheValue; } virtual bool operator ==(const SfxPoolItem & rItem) const override; diff --git a/include/vcl/abstdlg.hxx b/include/vcl/abstdlg.hxx index 7a8e18393d4f..d4bd91294bd7 100644 --- a/include/vcl/abstdlg.hxx +++ b/include/vcl/abstdlg.hxx @@ -98,18 +98,6 @@ public: virtual void EndDialog(sal_Int32 nResult) = 0; }; -class AbstractColorPickerDialog : virtual public VclAbstractDialog -{ -protected: - virtual ~AbstractColorPickerDialog() override = default; - -public: - virtual void SetColor(const Color& rColor) = 0; - virtual Color GetColor() const = 0; - - virtual weld::Dialog* GetDialog() const = 0; -}; - class VCL_DLLPUBLIC AbstractPasswordToOpenModifyDialog : public VclAbstractDialog { protected: diff --git a/svx/source/annotation/Annotation.cxx b/svx/source/annotation/Annotation.cxx index 0d6caa17d4ee..a3b20bc712d6 100644 --- a/svx/source/annotation/Annotation.cxx +++ b/svx/source/annotation/Annotation.cxx @@ -139,12 +139,6 @@ OUString Annotation::GetTextImpl(const std::unique_lock<std::mutex>& g) return xText->getString(); } -void Annotation::SetText(OUString const& rText) -{ - std::unique_lock g(m_aMutex); - SetTextImpl(rText, g); -} - void Annotation::SetTextImpl(OUString const& rText, const std::unique_lock<std::mutex>& g) { uno::Reference<text::XText> xText(getTextRangeImpl(g)); diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx index 99047ed34bfe..44861ad639c1 100644 --- a/sw/inc/tox.hxx +++ b/sw/inc/tox.hxx @@ -564,7 +564,6 @@ public: SwTOXBase& operator=(const SwTOXBase& rSource); void RegisterToTOXType( SwTOXType& rMark ); - virtual bool IsVisible() const { return true; } }; //SwTOXMark diff --git a/sw/source/core/inc/doctxm.hxx b/sw/source/core/inc/doctxm.hxx index d33809d5d885..65dc3ac2c361 100644 --- a/sw/source/core/inc/doctxm.hxx +++ b/sw/source/core/inc/doctxm.hxx @@ -87,10 +87,6 @@ public: void UpdatePageNum(); // insert page numbering bool SetPosAtStartEnd( SwPosition& rPos ) const; - bool IsVisible() const override - { - return GetFormat() && GetFormat()->IsVisible(); - } }; struct SwDefTOXBase_Impl diff --git a/sw/source/core/inc/pagefrm.hxx b/sw/source/core/inc/pagefrm.hxx index f5e2f503b16c..d97df16d8361 100644 --- a/sw/source/core/inc/pagefrm.hxx +++ b/sw/source/core/inc/pagefrm.hxx @@ -258,7 +258,6 @@ public: bool IsInvalidAutoCompleteWords() const { return m_bInvalidAutoCmplWrds; } bool IsInvalidWordCount() const { return m_bInvalidWordCount; } bool IsInvalidAtPageFly() const { return m_bInvalidAtPageFly; } - bool IsInAtPageFlyFormatting() const { return m_bInAtPageFlyFormatting; } void SetInAtPageFlyFormatting(bool val) const { m_bInAtPageFlyFormatting = val; } /** SwPageFrame::GetDrawBackgroundColor diff --git a/sw/source/uibase/sidebar/ThemePanel.hxx b/sw/source/uibase/sidebar/ThemePanel.hxx index abcf501f885e..5f78b48ba8be 100644 --- a/sw/source/uibase/sidebar/ThemePanel.hxx +++ b/sw/source/uibase/sidebar/ThemePanel.hxx @@ -42,7 +42,6 @@ private: DECL_LINK(ClickHdl, weld::Button&, void); DECL_LINK(ItemActivatedHdl, weld::IconView&, bool); - DECL_LINK(DoubleClickValueSetHdl, ValueSet*, void); void DoubleClickHdl(); VclPtr<VirtualDevice> CreateImage(const model::ColorSet& rColorSet); }; diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 1069c252df51..228e381a7e18 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -1254,7 +1254,6 @@ private: DECL_LINK(KeyPressHdl, const KeyEvent&, bool); DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool); DECL_LINK(StyleUpdatedHdl, VclDrawingArea&, void); - DECL_LINK(CommandHdl, const CommandEvent&, bool); DECL_LINK(QueryTooltipHdl, tools::Rectangle&, OUString); DECL_LINK(GetSurroundingHdl, OUString&, int); DECL_LINK(DeleteSurroundingHdl, const Selection&, bool);
