From e54b974033ea68101014f280061b06cd82256412 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 1 Feb 2015 20:39:29 +0100 Subject: loplugin:unreffun Change-Id: Iaf75d9570c2091365a16e13119e4515957a86551 --- svl/source/misc/strmadpt.cxx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'svl') diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index 241a031c284f..df8b901706ee 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) { -- cgit v1.2.3