diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 09:20:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 08:33:21 +0000 |
commit | b3ff2f450f2e20af8e8f77515ad0615106859292 (patch) | |
tree | 398bab17f6891e50dde504986a60989173c76ac4 /svl/source/misc | |
parent | d4d2fc24793960a07275e49706b90928b4a0c764 (diff) |
loplugin:unusedmethods in slideshow to svtools
Change-Id: Icf0056e13c88d7d347e668adaeddd4ed72af85cf
Reviewed-on: https://gerrit.libreoffice.org/25141
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl/source/misc')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 82 |
1 files changed, 1 insertions, 81 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index b608563a31d2..f8ae73263b02 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -26,6 +26,7 @@ #include <string.h> #include <com/sun/star/io/XInputStream.hpp> +#include <com/sun/star/io/XOutputStream.hpp> #include <com/sun/star/io/XSeekable.hpp> #include <osl/diagnose.h> @@ -34,8 +35,6 @@ #include <svl/instrm.hxx> #include <svl/outstrm.hxx> -#include <strmadpt.hxx> - using namespace com::sun::star; class SvDataPipe_Impl @@ -126,89 +125,10 @@ inline bool SvDataPipe_Impl::isEOF() const && (!m_pReadPage || m_pReadPage->m_pRead == m_pReadPage->m_pEnd); } -// SvOutputStreamOpenLockBytes - - -// virtual -ErrCode SvOutputStreamOpenLockBytes::ReadAt(sal_uInt64, void *, sal_uLong, sal_uLong*) - const -{ - return ERRCODE_IO_CANTREAD; -} - -// virtual -ErrCode SvOutputStreamOpenLockBytes::WriteAt(sal_uInt64 const nPos, void const * pBuffer, - sal_uLong nCount, sal_uLong * pWritten) -{ - if (nPos != m_nPosition) - return ERRCODE_IO_CANTWRITE; - return FillAppend(pBuffer, nCount, pWritten); -} - -// virtual -ErrCode SvOutputStreamOpenLockBytes::Flush() const -{ - if (!m_xOutputStream.is()) - return ERRCODE_IO_CANTWRITE; - try - { - m_xOutputStream->flush(); - } - catch (const io::IOException&) - { - return ERRCODE_IO_CANTWRITE; - } - return ERRCODE_NONE; -} - -// virtual -ErrCode SvOutputStreamOpenLockBytes::SetSize(sal_uInt64) -{ - return ERRCODE_IO_NOTSUPPORTED; -} - -// virtual -ErrCode SvOutputStreamOpenLockBytes::Stat(SvLockBytesStat * pStat, - SvLockBytesStatFlag) const -{ - if (pStat) - pStat->nSize = m_nPosition; - return ERRCODE_NONE; -} -// virtual -ErrCode SvOutputStreamOpenLockBytes::FillAppend(void const * pBuffer, - sal_uLong nCount, - sal_uLong * pWritten) -{ - if (!m_xOutputStream.is()) - return ERRCODE_IO_CANTWRITE; - if (nCount > 0 - && nCount > std::numeric_limits< sal_uLong >::max() - m_nPosition) - { - nCount = std::numeric_limits< sal_uLong >::max() - m_nPosition; - if (nCount == 0) - return ERRCODE_IO_CANTWRITE; - } - try - { - m_xOutputStream-> - writeBytes(uno::Sequence< sal_Int8 >( - static_cast< sal_Int8 const * >(pBuffer), nCount)); - } - catch (const io::IOException&) - { - return ERRCODE_IO_CANTWRITE; - } - m_nPosition += nCount; - if (pWritten) - *pWritten = nCount; - return ERRCODE_NONE; -} // SvInputStream - bool SvInputStream::open() { if (GetError() != ERRCODE_NONE) |