desktop/source/deployment/gui/dp_gui_dialog2.hxx |    2 -
 include/comphelper/configurationlistener.hxx     |    2 -
 sw/source/core/bastyp/swcache.cxx                |   34 -----------------------
 sw/source/core/inc/swcache.hxx                   |    8 -----
 4 files changed, 46 deletions(-)

New commits:
commit ca24b32151f58e86ffb69301163592ad39d36ac0
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Oct 21 13:29:46 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Tue Oct 21 17:48:22 2025 +0200

    loplugin:unusedmethods
    
    Change-Id: Ibf470ece46aa7150d7131ff66bc35d4769ec1125
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192787
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins

diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx 
b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index c4305cce351e..57971c59650f 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -153,8 +153,6 @@ public:
 
     void Close();
 
-    TheExtensionManager& getExtensionManager() const { return m_rManager; }
-
     void updateList();
     virtual void    prepareChecking() override;
     virtual void    checkEntries() override;
diff --git a/include/comphelper/configurationlistener.hxx 
b/include/comphelper/configurationlistener.hxx
index 3f2410c76022..c041e5b9fc19 100644
--- a/include/comphelper/configurationlistener.hxx
+++ b/include/comphelper/configurationlistener.hxx
@@ -95,8 +95,6 @@ public:
     /// Notify of the property change
     virtual void SAL_CALL propertyChange(
         css::beans::PropertyChangeEvent const &rEvt ) override;
-
-    bool isDisposed() const { return mbDisposed; }
 };
 
 template< typename uno_type > ConfigurationListenerProperty< uno_type 
>::ConfigurationListenerProperty(const rtl::Reference< ConfigurationListener > 
&xListener, const OUString &rProp )
diff --git a/sw/source/core/bastyp/swcache.cxx 
b/sw/source/core/bastyp/swcache.cxx
index 484850294193..817b5914dff7 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -136,15 +136,6 @@ void SwCache::IncreaseMax( const sal_uInt16 nAdd )
 #endif
 }
 
-void SwCache::DecreaseMax( const sal_uInt16 nSub )
-{
-    if ( m_nCurMax > nSub )
-        m_nCurMax = m_nCurMax - sal::static_int_cast< sal_uInt16 >(nSub);
-#ifdef DBG_UTIL
-    ++m_nDecreaseMax;
-#endif
-}
-
 void SwCache::Flush()
 {
     INCREMENT( m_nFlushCnt );
@@ -320,13 +311,6 @@ void SwCache::DeleteObj( SwCacheObj *pObj )
     CHECK;
 }
 
-void SwCache::Delete(void const*const pOwner, sal_uInt16 const nIndex)
-{
-    INCREMENT( m_nDelete );
-    if (SwCacheObj *const pObj = Get(pOwner, nIndex, false))
-        DeleteObj(pObj);
-}
-
 void SwCache::Delete( const void *pOwner )
 {
     INCREMENT( m_nDelete );
@@ -437,24 +421,6 @@ bool SwCache::Insert(SwCacheObj *const pNew, bool const 
isDuplicateOwnerAllowed)
     return true;
 }
 
-void SwCache::SetLRUOfst( const sal_uInt16 nOfst )
-{
-    assert(nOfst < m_nCurMax);
-    if ( !m_pRealFirst || ((m_aCacheObjects.size() - m_aFreePositions.size()) 
< nOfst) )
-        return;
-
-    CHECK;
-    m_pFirst = m_pRealFirst;
-    for ( sal_uInt16 i = 0; i < m_aCacheObjects.size() && i < nOfst; ++i )
-    {
-        if ( m_pFirst->GetNext() && m_pFirst->GetNext()->GetNext() )
-            m_pFirst = m_pFirst->GetNext();
-        else
-            break;
-    }
-    CHECK;
-}
-
 SwCacheObj::SwCacheObj( const void *pOwn ) :
     m_pNext( nullptr ),
     m_pPrev( nullptr ),
diff --git a/sw/source/core/inc/swcache.hxx b/sw/source/core/inc/swcache.hxx
index 6d4517771b4e..6341ffb0ec7e 100644
--- a/sw/source/core/inc/swcache.hxx
+++ b/sw/source/core/inc/swcache.hxx
@@ -103,17 +103,9 @@ public:
     void ToTop( SwCacheObj *pObj );
 
     bool Insert(SwCacheObj *pNew, bool isDuplicateOwnerAllowed);
-    void Delete(const void * pOwner, sal_uInt16 nIndex);
     void Delete( const void *pOwner );
 
-    /// Mark some entries as "do not delete"
-    /// @param nOfst determines how many are not to be touched
-    void SetLRUOfst( const sal_uInt16 nOfst );
-    void ResetLRUOfst() { m_pFirst = m_pRealFirst; }
-
     void IncreaseMax( const sal_uInt16 nAdd );
-    void DecreaseMax( const sal_uInt16 nSub );
-    sal_uInt16 GetCurMax() const { return m_nCurMax; }
     SwCacheObj *First() { return m_pRealFirst; }
     static inline SwCacheObj *Next( SwCacheObj *pCacheObj);
     SwCacheObj* operator[](sal_uInt16 nIndex) { return 
m_aCacheObjects[nIndex].get(); }

Reply via email to