From a7acea766c7812614b95257e934648cdf737ca3f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 May 2018 15:56:15 +0200 Subject: loplugin:unusedmethods Change-Id: I64df1f467986b3d70c058adff289a6dd8f00fb20 Reviewed-on: https://gerrit.libreoffice.org/54821 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/docfile.hxx | 1 - include/unotools/historyoptions.hxx | 10 ---------- sal/rtl/alloc_arena.hxx | 1 - sal/rtl/alloc_cache.cxx | 18 ------------------ sc/source/ui/inc/sortkeydlg.hxx | 2 -- sfx2/source/doc/docfile.cxx | 6 ------ unotools/source/config/historyoptions.cxx | 7 ------- vcl/inc/messagedialog.hxx | 1 - vcl/source/gdi/pdfwriter_impl.cxx | 11 ----------- vcl/source/gdi/pdfwriter_impl.hxx | 1 - vcl/source/window/layout.cxx | 13 ------------- writerperfect/source/writer/exp/txtstyli.cxx | 5 ----- writerperfect/source/writer/exp/txtstyli.hxx | 1 - 13 files changed, 77 deletions(-) diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index d3db0dfaba79..6e9f38241f2a 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -208,7 +208,6 @@ public: void SetInCheckIn( bool bInCheckIn ); bool IsInCheckIn( ); bool IsSkipImages( ); - OUString GetConvertImagesFilter(); SAL_DLLPRIVATE bool HasStorage_Impl() const; diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx index ca9ae2828142..df9030a7e8fa 100644 --- a/include/unotools/historyoptions.hxx +++ b/include/unotools/historyoptions.hxx @@ -60,16 +60,6 @@ public: SvtHistoryOptions(); virtual ~SvtHistoryOptions() override; - /** Get max size of specified history. - - Call this methods to get information about max. size of specified list. - If a new one is add to it the oldest one is deleted automatically. - - @param eHistory select right history. - @return Current max size of specified list. - */ - sal_uInt32 GetSize(EHistoryType eHistory) const; - /** Clear complete specified list. @param eHistory select right history. diff --git a/sal/rtl/alloc_arena.hxx b/sal/rtl/alloc_arena.hxx index 120d0ec5ac45..8bc419e33090 100644 --- a/sal/rtl/alloc_arena.hxx +++ b/sal/rtl/alloc_arena.hxx @@ -114,7 +114,6 @@ extern rtl_arena_type * gp_default_arena; typedef void (*ArenaForeachFn)(void *addr, sal_Size size); void rtl_arena_foreach(rtl_arena_type *arena, ArenaForeachFn fn); -void rtl_cache_foreach(rtl_cache_type *arena, ArenaForeachFn foreachFn); #endif // INCLUDED_SAL_RTL_ALLOC_ARENA_HXX diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx index f7dd02ab7c8a..38449ccfb795 100644 --- a/sal/rtl/alloc_cache.cxx +++ b/sal/rtl/alloc_cache.cxx @@ -1141,24 +1141,6 @@ void SAL_CALL rtl_cache_free( } } -// FIXME: foreachFn called for free'd blocks and will break free-chains. -void rtl_cache_foreach(rtl_cache_type *cache, ArenaForeachFn foreachFn) -{ - for (rtl_cache_slab_type *cur = &(cache->m_used_head); - cur && cur->m_slab_next != &(cache->m_used_head); - cur = cur->m_slab_next) - { - for (char *item = reinterpret_cast(cur->m_data); - item < reinterpret_cast(cur->m_bp); - item += cache->m_type_size) - { - foreachFn(item, cache->m_type_size); - } - } - - RTL_MEMORY_LOCK_RELEASE(&(cache->m_slab_lock)); -} - #if defined(SAL_UNX) void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C() diff --git a/sc/source/ui/inc/sortkeydlg.hxx b/sc/source/ui/inc/sortkeydlg.hxx index 3950605d0532..bf71d46289e7 100644 --- a/sc/source/ui/inc/sortkeydlg.hxx +++ b/sc/source/ui/inc/sortkeydlg.hxx @@ -50,8 +50,6 @@ public: ~ScSortKeyWindow(); void AddSortKey( sal_uInt16 nItem ); - void DoScroll( sal_Int32 nNewPos ); - sal_Int32 GetItemHeight() const { return m_nItemHeight; } }; #endif // INCLUDED_SC_SOURCE_UI_INC_SORTKEYDLG_HXX diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 72a6c131fc41..57536a51ddc1 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -533,12 +533,6 @@ bool SfxMedium::IsSkipImages() return pSkipImagesItem && pSkipImagesItem->GetValue() == "SkipImages"; } -OUString SfxMedium::GetConvertImagesFilter() -{ - const SfxStringItem* pConvertItem = GetItemSet()->GetItem(SID_CONVERT_IMAGES); - return ( pConvertItem ? pConvertItem->GetValue() : OUString() ); -} - SvStream* SfxMedium::GetInStream() { if ( pImpl->m_pInStream ) diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index 7b627b57c9fa..e08aa57c09cb 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -538,13 +538,6 @@ SvtHistoryOptions::~SvtHistoryOptions() m_pImpl.reset(); } -sal_uInt32 SvtHistoryOptions::GetSize( EHistoryType eHistory ) const -{ - MutexGuard aGuard(theHistoryOptionsMutex::get()); - - return m_pImpl->GetCapacity(eHistory); -} - void SvtHistoryOptions::Clear( EHistoryType eHistory ) { MutexGuard aGuard(theHistoryOptionsMutex::get()); diff --git a/vcl/inc/messagedialog.hxx b/vcl/inc/messagedialog.hxx index cf1df6ed68aa..5b4fda5a231c 100644 --- a/vcl/inc/messagedialog.hxx +++ b/vcl/inc/messagedialog.hxx @@ -38,7 +38,6 @@ private: public: MessageDialog(vcl::Window* pParent, const OUString& rMessage, VclMessageType eMessageType, VclButtonsType eButtonsType); - MessageDialog(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription); virtual bool set_property(const OString& rKey, const OUString& rValue) override; OUString const& get_primary_text() const; OUString const& get_secondary_text() const; diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 21ca8d478e5b..f5b7efe16570 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -11405,17 +11405,6 @@ void PDFWriterImpl::setAlternateText( const OUString& rText ) } } -void PDFWriterImpl::setAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr ) -{ - if( nPageNr < 0 ) - nPageNr = m_nCurrentPage; - - if( nPageNr < 0 || nPageNr >= static_cast(m_aPages.size()) ) - return; - - m_aPages[ nPageNr ].m_nDuration = nSeconds; -} - void PDFWriterImpl::setPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr ) { if( nPageNr < 0 ) diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx index 23da7f6052cc..b4c1b3a454e6 100644 --- a/vcl/source/gdi/pdfwriter_impl.hxx +++ b/vcl/source/gdi/pdfwriter_impl.hxx @@ -1268,7 +1268,6 @@ public: void setAlternateText( const OUString& rText ); // transitional effects - void setAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr ); void setPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr ); // controls diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 9d9e05325ddf..e29619092ba5 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2320,19 +2320,6 @@ MessageDialog::MessageDialog(vcl::Window* pParent, WinBits nStyle) SetType(WindowType::MESSBOX); } -MessageDialog::MessageDialog(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription) - : Dialog(pParent, OStringToOUString(rID, RTL_TEXTENCODING_UTF8), rUIXMLDescription, WindowType::MESSBOX) - , m_eButtonsType(VclButtonsType::NONE) - , m_eMessageType(VclMessageType::Info) - , m_pOwnedContentArea(nullptr) - , m_pOwnedActionArea(nullptr) - , m_pGrid(nullptr) - , m_pImage(nullptr) - , m_pPrimaryMessage(nullptr) - , m_pSecondaryMessage(nullptr) -{ -} - MessageDialog::MessageDialog(vcl::Window* pParent, const OUString &rMessage, VclMessageType eMessageType, diff --git a/writerperfect/source/writer/exp/txtstyli.cxx b/writerperfect/source/writer/exp/txtstyli.cxx index b8b7813e08ad..b8b84c03410c 100644 --- a/writerperfect/source/writer/exp/txtstyli.cxx +++ b/writerperfect/source/writer/exp/txtstyli.cxx @@ -388,11 +388,6 @@ librevenge::RVNGPropertyList& XMLStyleContext::GetPageLayoutPropertyList() return m_aPageLayoutPropertyList; } -librevenge::RVNGPropertyList& XMLStyleContext::GetMasterPagePropertyList() -{ - return m_aMasterPagePropertyList; -} - } // namespace exp } // namespace writerperfect diff --git a/writerperfect/source/writer/exp/txtstyli.hxx b/writerperfect/source/writer/exp/txtstyli.hxx index f72f9e60d769..c4ddc488899e 100644 --- a/writerperfect/source/writer/exp/txtstyli.hxx +++ b/writerperfect/source/writer/exp/txtstyli.hxx @@ -42,7 +42,6 @@ public: librevenge::RVNGPropertyList& GetTablePropertyList(); librevenge::RVNGPropertyList& GetGraphicPropertyList(); librevenge::RVNGPropertyList& GetPageLayoutPropertyList(); - librevenge::RVNGPropertyList& GetMasterPagePropertyList(); private: OUString m_aName; -- cgit