summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-19 09:20:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-19 08:33:21 +0000
commitb3ff2f450f2e20af8e8f77515ad0615106859292 (patch)
tree398bab17f6891e50dde504986a60989173c76ac4 /svl
parentd4d2fc24793960a07275e49706b90928b4a0c764 (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')
-rw-r--r--svl/source/inc/passwordcontainer.hxx28
-rw-r--r--svl/source/inc/strmadpt.hxx56
-rw-r--r--svl/source/misc/strmadpt.cxx82
-rw-r--r--svl/source/numbers/numfmuno.hxx3
-rw-r--r--svl/source/numbers/supservs.cxx2
5 files changed, 1 insertions, 170 deletions
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index 884a451dcfc9..d87d08acecf3 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -79,14 +79,6 @@ public:
{
}
- NamePassRecord( const OUString& aName, const ::std::vector< OUString >& aMemoryList )
- : m_aName( aName )
- , m_bHasMemPass( true )
- , m_aMemPass( aMemoryList )
- , m_bHasPersPass( false )
- {
- }
-
NamePassRecord( const OUString& aName, const OUString& aPersistentList )
: m_aName( aName )
, m_bHasMemPass( false )
@@ -95,16 +87,6 @@ public:
{
}
- NamePassRecord( const OUString& aName,
- bool bHasMemoryList, const ::std::vector< OUString >& aMemoryList,
- bool bHasPersistentList, const OUString & aPersistentList )
- : m_aName( aName )
- , m_bHasMemPass( bHasMemoryList )
- , m_bHasPersPass( bHasPersistentList )
- {
- InitArrays( bHasMemoryList, aMemoryList, bHasPersistentList, aPersistentList );
- }
-
NamePassRecord( const NamePassRecord& aRecord )
: m_aName( aRecord.m_aName )
, m_bHasMemPass( false )
@@ -394,16 +376,6 @@ public:
};
-class RW_SvMemoryStream : public SvMemoryStream {
-public:
- RW_SvMemoryStream( void* Buf, sal_uLong Size, StreamMode eMode ):
- SvMemoryStream( Buf, Size, eMode){}
-
- RW_SvMemoryStream( sal_uLong InitSize=512, sal_uLong Resize=64 ):
- SvMemoryStream( InitSize, Resize ){}
-};
-
-
#endif // INCLUDED_SVL_SOURCE_INC_PASSWORDCONTAINER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/inc/strmadpt.hxx b/svl/source/inc/strmadpt.hxx
deleted file mode 100644
index 90fc31eb139b..000000000000
--- a/svl/source/inc/strmadpt.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SVL_STRMADPT_HXX
-#define INCLUDED_SVL_STRMADPT_HXX
-
-#include <sal/config.h>
-
-#include <com/sun/star/io/XOutputStream.hpp>
-
-
-class SvOutputStreamOpenLockBytes: public SvOpenLockBytes
-{
- css::uno::Reference< css::io::XOutputStream > m_xOutputStream;
- sal_uInt64 m_nPosition;
-
-public:
-
- SvOutputStreamOpenLockBytes(
- const css::uno::Reference< css::io::XOutputStream > & rTheOutputStream):
- m_xOutputStream(rTheOutputStream), m_nPosition(0) {}
-
- virtual ErrCode ReadAt(sal_uInt64, void *, sal_uLong, sal_Size *) const override;
-
- virtual ErrCode WriteAt(sal_uInt64 nPos, const void * pBuffer, sal_uLong nCount,
- sal_Size * pWritten) override;
-
- virtual ErrCode Flush() const override;
-
- virtual ErrCode SetSize(sal_uInt64) override;
-
- virtual ErrCode Stat(SvLockBytesStat * pStat, SvLockBytesStatFlag) const override;
-
- virtual ErrCode FillAppend(const void * pBuffer, sal_uLong nCount,
- sal_uLong * pWritten) override;
-};
-
-#endif // INCLUDED_SVL_STRMADPT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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)
diff --git a/svl/source/numbers/numfmuno.hxx b/svl/source/numbers/numfmuno.hxx
index 729574b6c677..3523a863da7f 100644
--- a/svl/source/numbers/numfmuno.hxx
+++ b/svl/source/numbers/numfmuno.hxx
@@ -159,9 +159,6 @@ public:
throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw(css::uno::RuntimeException, std::exception) override;
-
-private:
- SvNumberFormatsObj(); // never implemented
};
diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index 5aebe0772c3f..28a7f16f29bd 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -30,8 +30,6 @@
#include <tools/stream.hxx>
#include <svl/instrm.hxx>
-#include <strmadpt.hxx>
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::io;