summaryrefslogtreecommitdiff
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
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>
-rw-r--r--slideshow/source/engine/transitions/slidechangebase.hxx2
-rw-r--r--slideshow/source/inc/listenercontainer.hxx13
-rw-r--r--starmath/inc/utility.hxx4
-rw-r--r--starmath/source/utility.cxx10
-rw-r--r--stoc/source/security/lru_cache.h15
-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
-rw-r--r--svtools/inc/table/tablecontrolinterface.hxx7
11 files changed, 1 insertions, 221 deletions
diff --git a/slideshow/source/engine/transitions/slidechangebase.hxx b/slideshow/source/engine/transitions/slidechangebase.hxx
index fbb3d6d8d7b0..13e699f8cc48 100644
--- a/slideshow/source/engine/transitions/slidechangebase.hxx
+++ b/slideshow/source/engine/transitions/slidechangebase.hxx
@@ -88,8 +88,6 @@ protected:
/// Info on a per-view basis
struct ViewEntry
{
- ViewEntry() {}
-
explicit ViewEntry( const UnoViewSharedPtr& rView ) :
mpView( rView )
{
diff --git a/slideshow/source/inc/listenercontainer.hxx b/slideshow/source/inc/listenercontainer.hxx
index 7999066bb3f5..c16fa8985b52 100644
--- a/slideshow/source/inc/listenercontainer.hxx
+++ b/slideshow/source/inc/listenercontainer.hxx
@@ -43,19 +43,6 @@ struct EmptyBase
class MutexBase
{
public:
- struct Guard : public osl::MutexGuard
- {
- explicit Guard(MutexBase const& rBase) :
- osl::MutexGuard(rBase.maMutex)
- {}
- };
- struct ClearableGuard : public osl::ClearableMutexGuard
- {
- explicit ClearableGuard(MutexBase const& rBase) :
- osl::ClearableMutexGuard(rBase.maMutex)
- {}
- };
-
mutable osl::Mutex maMutex;
};
diff --git a/starmath/inc/utility.hxx b/starmath/inc/utility.hxx
index 3576c5fe1faf..6e8b977c2251 100644
--- a/starmath/inc/utility.hxx
+++ b/starmath/inc/utility.hxx
@@ -84,8 +84,6 @@ public:
Font(rFont), nBorderWidth(-1) { Impl_Init(); }
SmFace(const OUString& rName, const Size& rSize) :
Font(rName, rSize), nBorderWidth(-1) { Impl_Init(); }
- SmFace( FontFamily eFamily, const Size& rSize) :
- Font(eFamily, rSize), nBorderWidth(-1) { Impl_Init(); }
SmFace(const SmFace &rFace) :
Font(rFace), nBorderWidth(-1) { Impl_Init(); }
@@ -124,7 +122,6 @@ public:
virtual ~SmFontPickList() { Clear(); }
virtual void Insert(const vcl::Font &rFont);
- void Update(const vcl::Font &rFont, const vcl::Font &rNewFont);
void Remove(const vcl::Font &rFont);
void Clear();
@@ -152,7 +149,6 @@ public:
virtual void Insert(const vcl::Font &rFont) override;
using Window::Update;
- using SmFontPickList::Update;
};
#endif
diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx
index 0a1b61ba282e..6983cb418468 100644
--- a/starmath/source/utility.cxx
+++ b/starmath/source/utility.cxx
@@ -104,16 +104,6 @@ void SmFontPickList::Insert(const vcl::Font &rFont)
}
}
-void SmFontPickList::Update(const vcl::Font &rFont, const vcl::Font &rNewFont)
-{
- for (vcl::Font & rPos : aFontVec)
- if (CompareItem( rPos, rFont ))
- {
- rPos = rNewFont;
- break;
- }
-}
-
void SmFontPickList::Remove(const vcl::Font &rFont)
{
for (size_t nPos = 0; nPos < aFontVec.size(); nPos++)
diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h
index b2c384706a86..78523c52d3d4 100644
--- a/stoc/source/security/lru_cache.h
+++ b/stoc/source/security/lru_cache.h
@@ -58,11 +58,6 @@ public:
/** Default Ctor. Does not cache.
*/
inline lru_cache();
- /** Ctor.
-
- @param size number of elements to be cached; default param set to 128
- */
- explicit inline lru_cache( ::std::size_t size );
/** Destructor: releases all cached elements and keys.
*/
@@ -112,16 +107,6 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::setSize(
}
template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey >
-inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache(
- ::std::size_t size )
- : m_size( 0 )
- , m_block( nullptr )
- , m_tail( nullptr )
-{
- setSize( size );
-}
-
-template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey >
inline lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lru_cache()
: m_size( 0 )
, m_block( nullptr )
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;
diff --git a/svtools/inc/table/tablecontrolinterface.hxx b/svtools/inc/table/tablecontrolinterface.hxx
index 5f957b93d9b5..2e5e6d4d19b6 100644
--- a/svtools/inc/table/tablecontrolinterface.hxx
+++ b/svtools/inc/table/tablecontrolinterface.hxx
@@ -95,13 +95,6 @@ namespace svt { namespace table
RowPos nRow;
TableCellArea eArea;
- TableCell()
- :nColumn( COL_INVALID )
- ,nRow( ROW_INVALID )
- ,eArea( CellContent )
- {
- }
-
TableCell( ColPos const i_column, RowPos const i_row )
:nColumn( i_column )
,nRow( i_row )