include/svx/PaletteManager.hxx              |    1 
 sd/inc/drawdoc.hxx                          |   16 -------------
 sd/source/ui/func/fuoltext.cxx              |    7 -----
 sd/source/ui/inc/fuoltext.hxx               |    2 -
 sdext/source/pdfimport/inc/pdfihelper.hxx   |    4 ---
 sdext/source/pdfimport/misc/pwdinteract.cxx |   34 ----------------------------
 svx/source/tbxctrls/PaletteManager.cxx      |   14 -----------
 7 files changed, 78 deletions(-)

New commits:
commit 7cd85817c7626150fe59cfdd72c09f92cc7d7978
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Apr 14 16:23:26 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Apr 15 11:20:56 2025 +0200

    loplugin:unusedmethods
    
    Change-Id: I1b2dce9aa52e8af57b15c2bc14c0df67bef185af
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184190
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx
index e8eceb3c07fb..c09fd73dfbc1 100644
--- a/include/svx/PaletteManager.hxx
+++ b/include/svx/PaletteManager.hxx
@@ -52,7 +52,6 @@ class SVXCORE_DLLPUBLIC PaletteManager : public 
std::enable_shared_from_this<Pal
     std::unique_ptr<SvColorDialog> m_pColorDlg;
     std::optional<svx::ThemePaletteCollection> moThemePaletteCollection;
 
-    PaletteManager(const PaletteManager* pClone);
 public:
     PaletteManager();
     ~PaletteManager();
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index fc09e2d96e23..5e34d41ccbea 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -163,22 +163,6 @@ struct StyleTransferContext
         , pDestStyleSheetPool(pDest)
     {}
 
-    // Set style sheet pools
-    void setStyleSheetPools(SdStyleSheetPool* pSource, SdStyleSheetPool* 
pDest) {
-        pSourceStyleSheetPool = pSource;
-        pDestStyleSheetPool = pDest;
-    }
-
-    // Reset/clear all collections
-    void clear() {
-        aGraphicStyles.clear();
-        aCellStyles.clear();
-        aTableStyles.clear();
-        aRenameString.clear();
-        aSlideLayouts.clear();
-        aThemes.clear();
-        // Don't clear pointers to style sheet pools
-    }
 };
 
 /**
diff --git a/sd/source/ui/func/fuoltext.cxx b/sd/source/ui/func/fuoltext.cxx
index 6cebc1c55cb4..0f2c354fca32 100644
--- a/sd/source/ui/func/fuoltext.cxx
+++ b/sd/source/ui/func/fuoltext.cxx
@@ -149,13 +149,6 @@ bool FuSimpleOutlinerText::Command(const CommandEvent& 
rCEvt)
 }
 
 
-rtl::Reference<FuPoor> FuSimpleOutlinerText::Create( ViewShell* pViewSh, 
::sd::Window* pWin, ::sd::SimpleOutlinerView* pView, SdDrawDocument* pDoc, 
SfxRequest& rReq )
-{
-    rtl::Reference<FuPoor> xFunc( new FuSimpleOutlinerText( pViewSh, pWin, 
pView, pDoc, rReq ) );
-    xFunc->DoExecute( rReq );
-    return xFunc;
-}
-
 bool FuSimpleOutlinerText::MouseButtonDown(const MouseEvent& rMEvt)
 {
     mpWindow->GrabFocus();
diff --git a/sd/source/ui/inc/fuoltext.hxx b/sd/source/ui/inc/fuoltext.hxx
index ddbada52734b..61b69ad9512b 100644
--- a/sd/source/ui/inc/fuoltext.hxx
+++ b/sd/source/ui/inc/fuoltext.hxx
@@ -36,8 +36,6 @@ class SimpleOutlinerView;
 class FuSimpleOutlinerText : public FuPoor
 {
 public:
-    static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* 
pWin, ::sd::SimpleOutlinerView* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
-
     virtual bool Command(const CommandEvent& rCEvt) override;
 
     virtual bool KeyInput(const KeyEvent& rKEvt) override;
diff --git a/sdext/source/pdfimport/inc/pdfihelper.hxx 
b/sdext/source/pdfimport/inc/pdfihelper.hxx
index a4414cd4809d..bc8e04a70253 100644
--- a/sdext/source/pdfimport/inc/pdfihelper.hxx
+++ b/sdext/source/pdfimport/inc/pdfihelper.hxx
@@ -223,10 +223,6 @@ namespace pdfi
                       bool                                                 
bFirstTry,
                       const OUString&                                 rDocName
                       );
-
-    void reportUnsupportedEncryptionFormat(
-        css::uno::Reference<
-            css::task::XInteractionHandler > const & handler);
 }
 
 #endif
diff --git a/sdext/source/pdfimport/misc/pwdinteract.cxx 
b/sdext/source/pdfimport/misc/pwdinteract.cxx
index dcd3f8566d1f..c289acc98e50 100644
--- a/sdext/source/pdfimport/misc/pwdinteract.cxx
+++ b/sdext/source/pdfimport/misc/pwdinteract.cxx
@@ -115,33 +115,6 @@ void PDFPasswordRequest::select()
     m_bSelected = true;
 }
 
-class UnsupportedEncryptionFormatRequest:
-    public cppu::WeakImplHelper< task::XInteractionRequest >
-{
-public:
-    UnsupportedEncryptionFormatRequest() {}
-    UnsupportedEncryptionFormatRequest(const 
UnsupportedEncryptionFormatRequest&) = delete;
-    UnsupportedEncryptionFormatRequest& operator=(const 
UnsupportedEncryptionFormatRequest&) = delete;
-
-private:
-    virtual ~UnsupportedEncryptionFormatRequest() override {}
-
-    virtual uno::Any SAL_CALL getRequest() override {
-        return uno::Any(
-            task::ErrorCodeRequest(
-                OUString(), uno::Reference< uno::XInterface >(),
-                sal_uInt32(ERRCODE_IO_WRONGVERSION)));
-            //TODO: should be something more informative than crudely reused
-            // ERRCODE_IO_WRONGVERSION
-    }
-
-    virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > >
-    SAL_CALL getContinuations() override {
-        return
-            uno::Sequence< uno::Reference< task::XInteractionContinuation > 
>();
-    }
-};
-
 } // namespace
 
 namespace pdfi
@@ -174,13 +147,6 @@ bool getPassword( const uno::Reference< 
task::XInteractionHandler >& xHandler,
     return bSuccess;
 }
 
-void reportUnsupportedEncryptionFormat(
-    uno::Reference< task::XInteractionHandler > const & handler)
-{
-    assert(handler.is());
-    handler->handle(new UnsupportedEncryptionFormatRequest);
-}
-
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/tbxctrls/PaletteManager.cxx 
b/svx/source/tbxctrls/PaletteManager.cxx
index 18eed9027552..a208b218605c 100644
--- a/svx/source/tbxctrls/PaletteManager.cxx
+++ b/svx/source/tbxctrls/PaletteManager.cxx
@@ -72,20 +72,6 @@ PaletteManager::PaletteManager() :
 
 }
 
-PaletteManager::PaletteManager(const PaletteManager* pClone)
-    : mnMaxRecentColors(pClone->mnMaxRecentColors)
-    , mnNumOfPalettes(pClone->mnNumOfPalettes)
-    , mnCurrentPalette(pClone->mnCurrentPalette)
-    , mnColorCount(pClone->mnColorCount)
-    , mpBtnUpdater(nullptr)
-    , pColorList(pClone->pColorList)
-    , maRecentColors(pClone->maRecentColors)
-    , maColorSelectFunction(PaletteManager::DispatchColorCommand)
-{
-    for (const auto& a : pClone->m_Palettes)
-        m_Palettes.emplace_back(a->Clone());
-}
-
 PaletteManager::~PaletteManager()
 {
 }

Reply via email to