include/svl/numformat.hxx | 2 -- include/svx/PaletteManager.hxx | 2 -- include/vcl/outdev.hxx | 6 ------ sc/inc/address.hxx | 7 ------- svl/source/numbers/zforlist.cxx | 5 ----- svx/source/tbxctrls/PaletteManager.cxx | 5 ----- vcl/source/outdev/text.cxx | 11 ----------- 7 files changed, 38 deletions(-)
New commits: commit 31d5cbdf486d14a396153bcefdcb3881d2ad5040 Author: Noel Grandin <[email protected]> AuthorDate: Tue Apr 1 08:16:56 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Apr 1 12:11:21 2025 +0200 loplugin:unusedmethods Change-Id: I07b1acf3d01bc0ceb6e5b2a6db260e6e7874379e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183571 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/include/svl/numformat.hxx b/include/svl/numformat.hxx index d499377ed9bf..4c8f70e6f906 100644 --- a/include/svl/numformat.hxx +++ b/include/svl/numformat.hxx @@ -607,8 +607,6 @@ public: // date acceptance patterns change. void InvalidateDateAcceptancePatterns(); - const css::uno::Reference<css::uno::XComponentContext>& GetComponentContext() const; - //! The following methods are not to be used from outside but must be //! public for the InputScanner and FormatScanner. diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx index 44b9d40ad77f..e8eceb3c07fb 100644 --- a/include/svx/PaletteManager.hxx +++ b/include/svx/PaletteManager.hxx @@ -80,8 +80,6 @@ public: bool IsThemePaletteSelected() const; - PaletteManager* Clone() const; - static bool GetThemeAndEffectIndex(sal_uInt16 nItemId, sal_uInt16& rThemeIndex, sal_uInt16& rEffectIndex); bool GetLumModOff(sal_uInt16 nThemeIndex, sal_uInt16 nEffect, sal_Int16& rLumMod, sal_Int16& rLumOff); diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 9b60d79d28a4..da73268f4b69 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1080,12 +1080,6 @@ public: tools::Long nCharExtra = 0, vcl::text::TextLayoutCache const* = nullptr, const SalLayoutGlyphs* pGlyphs = nullptr) const; - sal_Int32 GetTextBreak( const OUString& rStr, tools::Long nTextWidth, - sal_Unicode nExtraChar, sal_Int32& rExtraCharPos, - sal_Int32 nIndex, sal_Int32 nLen, - tools::Long nCharExtra, - vcl::text::TextLayoutCache const* = nullptr, - const SalLayoutGlyphs* pGlyphs = nullptr) const; sal_Int32 GetTextBreakArray(const OUString& rStr, tools::Long nTextWidth, std::optional<sal_Unicode> nExtraChar, std::optional<sal_Int32*> pExtraCharPos, sal_Int32 nIndex, diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 70885c139968..4acc2a7677ed 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -958,13 +958,6 @@ bool ConvertDoubleRef( const ScDocument& rDocument, const OUString& rRefString, /// append alpha representation of column to buffer SC_DLLPUBLIC void ScColToAlpha( OUStringBuffer& rBuffer, SCCOL nCol); -inline void ScColToAlpha( OUString& rStr, SCCOL nCol) -{ - OUStringBuffer aBuf(4); - ScColToAlpha( aBuf, nCol); - rStr += aBuf; -} - inline OUString ScColToAlpha( SCCOL nCol ) { OUStringBuffer aBuf(4); diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 61fa1f06bcf7..da7537717e94 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -620,11 +620,6 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage ) ImpGenerateAdditionalFormats( nCLOffset, xNFC ); } -const css::uno::Reference<css::uno::XComponentContext>& SvNumberFormatter::GetComponentContext() const -{ - return m_xContext; -} - const NativeNumberWrapper& SvNumberFormatter::GetNatNum() const { return m_xNatNum.get(); } bool SvNFFormatData::IsTextFormat(sal_uInt32 F_Index) const diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx index b01b3eb3514b..18eed9027552 100644 --- a/svx/source/tbxctrls/PaletteManager.cxx +++ b/svx/source/tbxctrls/PaletteManager.cxx @@ -86,11 +86,6 @@ PaletteManager::PaletteManager(const PaletteManager* pClone) m_Palettes.emplace_back(a->Clone()); } -PaletteManager* PaletteManager::Clone() const -{ - return new PaletteManager(this); -} - PaletteManager::~PaletteManager() { } diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index ae68a4673371..d16c776d1df4 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -1387,17 +1387,6 @@ sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, tools::Long nTextWid return nRetVal; } -sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, tools::Long nTextWidth, - sal_Unicode nHyphenChar, sal_Int32& rHyphenPos, - sal_Int32 nIndex, sal_Int32 nLen, - tools::Long nCharExtra, - vcl::text::TextLayoutCache const*const pLayoutCache, - const SalLayoutGlyphs* pGlyphs) const -{ - return GetTextBreakArray(rStr, nTextWidth, nHyphenChar, &rHyphenPos, nIndex, nLen, nCharExtra, - {}, pLayoutCache, pGlyphs); -} - sal_Int32 OutputDevice::GetTextBreakArray(const OUString& rStr, tools::Long nTextWidth, std::optional<sal_Unicode> nHyphenChar, std::optional<sal_Int32*> pHyphenPos, sal_Int32 nIndex,
