summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-18 13:18:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-19 06:40:28 +0000
commit581e4da5847733a0e87d5ff9cd1c9f2b9fa471fe (patch)
tree9a641b563b2a930056f1e3ce3ed5ad20944b4911 /tools
parent0a17332884db7a999df7190e674cfe2ecc0069c6 (diff)
loplugin:unusedmethods in tools
Change-Id: I26a4ce6e849615d6d24632650ca03c40ab16502e Reviewed-on: https://gerrit.libreoffice.org/25089 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx54
1 files changed, 0 insertions, 54 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 0074ed6fd670..b57cda22ffde 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -250,60 +250,6 @@ ErrCode SvLockBytes::Stat(SvLockBytesStat * pStat, SvLockBytesStatFlag) const
return ERRCODE_NONE;
}
-// class SvOpenLockBytes
-
-
-// class SvAsyncLockBytes
-
-
-// virtual
-ErrCode SvAsyncLockBytes::ReadAt(sal_uInt64 const nPos, void * pBuffer, sal_Size nCount,
- sal_Size * pRead) const
-{
- if (m_bTerminated)
- return SvOpenLockBytes::ReadAt(nPos, pBuffer, nCount, pRead);
- else
- {
- sal_Size nTheCount =
- std::min<sal_Size>(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
- ErrCode nError = SvOpenLockBytes::ReadAt(nPos, pBuffer, nTheCount,
- pRead);
- return !nCount || nTheCount == nCount || nError ? nError :
- ERRCODE_IO_PENDING;
- }
-}
-
-// virtual
-ErrCode SvAsyncLockBytes::WriteAt(sal_uInt64 const nPos, const void * pBuffer,
- sal_Size nCount, sal_Size * pWritten)
-{
- if (m_bTerminated)
- return SvOpenLockBytes::WriteAt(nPos, pBuffer, nCount, pWritten);
- else
- {
- sal_Size nTheCount =
- std::min<sal_Size>(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
- ErrCode nError = SvOpenLockBytes::WriteAt(nPos, pBuffer, nTheCount,
- pWritten);
- return !nCount || nTheCount == nCount || nError ? nError :
- ERRCODE_IO_PENDING;
- }
-}
-
-// virtual
-ErrCode SvAsyncLockBytes::FillAppend(const void * pBuffer, sal_Size nCount,
- sal_Size * pWritten)
-{
- sal_Size nTheWritten(0);
- ErrCode nError = SvOpenLockBytes::WriteAt(m_nSize, pBuffer, nCount,
- &nTheWritten);
- if (!nError)
- m_nSize += nTheWritten;
- if (pWritten)
- *pWritten = nTheWritten;
- return nError;
-}
-
// class SvStream
sal_Size SvStream::GetData( void* pData, sal_Size nSize )