summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-01 20:39:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-01 20:39:29 +0100
commite54b974033ea68101014f280061b06cd82256412 (patch)
treeb83d0014ea9f82ff49d9d83ea98a722dcca9f27e /svl
parentca5479fb576060f2703c09206d78d9ae6f537af8 (diff)
loplugin:unreffun
Change-Id: Iaf75d9570c2091365a16e13119e4515957a86551
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/strmadpt.cxx22
1 files changed, 0 insertions, 22 deletions
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)
{