From 581e4da5847733a0e87d5ff9cd1c9f2b9fa471fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 May 2016 13:18:56 +0200 Subject: loplugin:unusedmethods in tools Change-Id: I26a4ce6e849615d6d24632650ca03c40ab16502e Reviewed-on: https://gerrit.libreoffice.org/25089 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/stream/stream.cxx | 54 ------------------------------------------ 1 file changed, 54 deletions(-) (limited to 'tools') 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(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(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 ) -- cgit