Kaydet (Commit) a7acea76 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I64df1f467986b3d70c058adff289a6dd8f00fb20
Reviewed-on: https://gerrit.libreoffice.org/54821Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 18c85f77
......@@ -208,7 +208,6 @@ public:
void SetInCheckIn( bool bInCheckIn );
bool IsInCheckIn( );
bool IsSkipImages( );
OUString GetConvertImagesFilter();
SAL_DLLPRIVATE bool HasStorage_Impl() const;
......
......@@ -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.
......
......@@ -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
......
......@@ -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<char *>(cur->m_data);
item < reinterpret_cast<char *>(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()
......
......@@ -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
......
......@@ -533,12 +533,6 @@ bool SfxMedium::IsSkipImages()
return pSkipImagesItem && pSkipImagesItem->GetValue() == "SkipImages";
}
OUString SfxMedium::GetConvertImagesFilter()
{
const SfxStringItem* pConvertItem = GetItemSet()->GetItem<SfxStringItem>(SID_CONVERT_IMAGES);
return ( pConvertItem ? pConvertItem->GetValue() : OUString() );
}
SvStream* SfxMedium::GetInStream()
{
if ( pImpl->m_pInStream )
......
......@@ -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());
......
......@@ -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;
......
......@@ -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<sal_Int32>(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 )
......
......@@ -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
......
......@@ -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,
......
......@@ -388,11 +388,6 @@ librevenge::RVNGPropertyList& XMLStyleContext::GetPageLayoutPropertyList()
return m_aPageLayoutPropertyList;
}
librevenge::RVNGPropertyList& XMLStyleContext::GetMasterPagePropertyList()
{
return m_aMasterPagePropertyList;
}
} // namespace exp
} // namespace writerperfect
......
......@@ -42,7 +42,6 @@ public:
librevenge::RVNGPropertyList& GetTablePropertyList();
librevenge::RVNGPropertyList& GetGraphicPropertyList();
librevenge::RVNGPropertyList& GetPageLayoutPropertyList();
librevenge::RVNGPropertyList& GetMasterPagePropertyList();
private:
OUString m_aName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment