diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 15:06:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-14 08:50:43 +0200 |
commit | de70170ace52c0266bde7b5d6cb9b6958db53c43 (patch) | |
tree | 4b22144cb951b6198d4d6f8d7a58733585a17ad3 /svl | |
parent | 8c3ba5aa8de964313885afcdec06ef33a5c6a23a (diff) |
loplugin:unusedmethods unused return value in store,svl
Change-Id: I369b3ae84af046242430977cec7d5c5e69fc27e7
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 18 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 5 |
2 files changed, 9 insertions, 14 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index e0157a1406b1..c4290e2fc262 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -68,7 +68,7 @@ private: sal_uInt32 m_nPages; bool m_bEOF; - bool remove(Page * pPage); + void remove(Page * pPage); public: inline SvDataPipe_Impl(sal_uInt32 nThePageSize = 1000, @@ -84,7 +84,7 @@ public: void clearReadBuffer() { m_pReadBuffer = nullptr; } - sal_uInt32 write(sal_Int8 const * pBuffer, sal_uInt32 nSize); + void write(sal_Int8 const * pBuffer, sal_uInt32 nSize); void setEOF() { m_bEOF = true; } @@ -533,7 +533,7 @@ SvOutputStream::~SvOutputStream() // SvDataPipe_Impl -bool SvDataPipe_Impl::remove(Page * pPage) +void SvDataPipe_Impl::remove(Page * pPage) { if ( pPage != m_pFirstPage || @@ -544,20 +544,18 @@ bool SvDataPipe_Impl::remove(Page * pPage) ) ) { - return false; + return; } m_pFirstPage = m_pFirstPage->m_pNext; if (m_nPages <= m_nMinPages) - return true; + return; pPage->m_pPrev->m_pNext = pPage->m_pNext; pPage->m_pNext->m_pPrev = pPage->m_pPrev; rtl_freeMemory(pPage); --m_nPages; - - return true; } SvDataPipe_Impl::~SvDataPipe_Impl() @@ -611,10 +609,10 @@ sal_uInt32 SvDataPipe_Impl::read() return nSize - nRemain; } -sal_uInt32 SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize) +void SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize) { if (nSize == 0) - return 0; + return; if (m_pWritePage == nullptr) { @@ -705,8 +703,6 @@ sal_uInt32 SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize) m_pWritePage->m_pRead = m_pWritePage->m_aBuffer; m_pWritePage->m_pEnd = m_pWritePage->m_aBuffer; } - - return nSize - nRemain; } SvDataPipe_Impl::SeekResult SvDataPipe_Impl::setReadPosition(sal_uInt32 diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 1326c9a9b571..4b2646e4f81e 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -166,7 +166,7 @@ public: void Insert( SvNumberFormatter* pThis ) { aFormatters.push_back( pThis ); } - SvNumberFormatter* Remove( SvNumberFormatter* pThis ); + void Remove( SvNumberFormatter* pThis ); size_t Count() { return aFormatters.size(); } @@ -187,7 +187,7 @@ SvNumberFormatterRegistry_Impl::~SvNumberFormatterRegistry_Impl() } -SvNumberFormatter* SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter* pThis ) +void SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter* pThis ) { for (SvNumberFormatterList_impl::iterator it = aFormatters.begin(); it != aFormatters.end(); ++it) @@ -198,7 +198,6 @@ SvNumberFormatter* SvNumberFormatterRegistry_Impl::Remove( SvNumberFormatter* pT break; } } - return pThis; } void SvNumberFormatterRegistry_Impl::ConfigurationChanged( utl::ConfigurationBroadcaster*, |