svl/source/misc/strmadpt.cxx | 22 ---------------------- 1 file changed, 22 deletions(-)
New commits: commit e54b974033ea68101014f280061b06cd82256412 Author: Stephan Bergmann <[email protected]> Date: Sun Feb 1 20:39:29 2015 +0100 loplugin:unreffun Change-Id: Iaf75d9570c2091365a16e13119e4515957a86551 diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index 241a031..df8b901 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -90,9 +90,6 @@ public: inline bool isEOF() const; - bool addMark(sal_uInt32 nPosition); - bool removeMark(sal_uInt32 nPosition); - SeekResult setReadPosition(sal_uInt32 nPosition); }; @@ -745,25 +742,6 @@ sal_uInt32 SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize) return nSize - nRemain; } -bool SvDataPipe_Impl::addMark(sal_uInt32 nPosition) -{ - if (m_pFirstPage != 0 && m_pFirstPage->m_nOffset > nPosition) - return false; - m_aMarks.insert(nPosition); - return true; -} - -bool SvDataPipe_Impl::removeMark(sal_uInt32 nPosition) -{ - std::multiset< sal_uInt32 >::iterator t = m_aMarks.find(nPosition); - if (t == m_aMarks.end()) - return false; - m_aMarks.erase(t); - // coverity[pass_freed_arg] - remove frees m_pFirstPage but then sets m_pFirstPage to something else - while (remove(m_pFirstPage)) ; - return true; -} - SvDataPipe_Impl::SeekResult SvDataPipe_Impl::setReadPosition(sal_uInt32 nPosition) { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
