From 644487a1152c7586a7f20c7f372572a71d8494d5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Oct 2015 16:28:27 +0200 Subject: loplugin:unusedmethods Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/errcode.hxx | 6 ------ include/tools/pstm.hxx | 4 ---- include/tools/ref.hxx | 8 -------- include/tools/stream.hxx | 4 ---- include/tools/unqidx.hxx | 3 --- 5 files changed, 25 deletions(-) (limited to 'include/tools') diff --git a/include/tools/errcode.hxx b/include/tools/errcode.hxx index 0df5e305b265..5a8f57af462b 100644 --- a/include/tools/errcode.hxx +++ b/include/tools/errcode.hxx @@ -81,7 +81,6 @@ Warning || || | #ifdef __RSC -#define ERRCODE_TOERRID(x) (x & ~ERRCODE_DYNAMIC_MASK) #define ERRCODE_TOERROR(x) \ ((x & ERRCODE_WARNING_MASK) ? 0 : (x & ERRCODE_ERROR_MASK)) @@ -89,11 +88,6 @@ Warning || || | typedef sal_uInt32 ErrCode; -inline sal_uInt32 ERRCODE_TOERRID( ErrCode x ) -{ - return x & ~ERRCODE_DYNAMIC_MASK; -} - inline sal_uInt32 ERRCODE_TOERROR( ErrCode x ) { return ((x & ERRCODE_WARNING_MASK) ? 0 : (x & ERRCODE_ERROR_MASK)); diff --git a/include/tools/pstm.hxx b/include/tools/pstm.hxx index 56aa05645a6b..402a0c9e0635 100644 --- a/include/tools/pstm.hxx +++ b/include/tools/pstm.hxx @@ -159,7 +159,6 @@ public: virtual ~SvPersistStream(); void SetStream( SvStream * pStream ); - SvStream * GetStream() const { return pStm; } SvPersistBase * GetObject( sal_uIntPtr nIdx ) const; sal_uIntPtr GetIndex( SvPersistBase * ) const; @@ -175,9 +174,6 @@ public: SvPersistStream& ReadPointer( SvPersistBase * & rpObj ); TOOLS_DLLPUBLIC friend SvPersistStream& WriteSvPersistBase(SvPersistStream &, SvPersistBase *); TOOLS_DLLPUBLIC friend SvPersistStream& operator >> (SvPersistStream &, SvPersistBase * &); - - // Objects maintain their IDs while storing and loading to/from stream - friend SvStream& operator >> ( SvStream &, SvPersistStream & ); }; #endif diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx index b98fd79dd211..93b0c564c594 100644 --- a/include/tools/ref.hxx +++ b/include/tools/ref.hxx @@ -130,14 +130,6 @@ public: p->AddFirstRef(); } - inline void insert(const SvRefMemberList& rOther) - { - for( typename base_t::const_iterator it = rOther.begin(); it != rOther.end(); ++it ) - { - push_back(*it); - } - } - inline T pop_back() { T p = base_t::back(); diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index 46296bb069c1..2ac01dbbfe41 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -153,8 +153,6 @@ public: virtual ErrCode FillAppend(const void * pBuffer, sal_Size nCount, sal_Size * pWritten) = 0; - - virtual void Terminate() = 0; }; @@ -178,8 +176,6 @@ public: virtual ErrCode FillAppend(const void * pBuffer, sal_Size nCount, sal_Size * pWritten) override; - - virtual void Terminate() override { m_bTerminated = true; } }; diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx index 27de75f26515..66a65f59d8c1 100644 --- a/include/tools/unqidx.hxx +++ b/include/tools/unqidx.hxx @@ -42,7 +42,6 @@ public: sal_uIntPtr Insert( void* p ); // insert value with key, replacing existing entry if necessary - void Insert( sal_uIntPtr aIndex, void* p ); void* Remove( sal_uIntPtr aIndex ); void* Get( sal_uIntPtr aIndex ) const; @@ -59,10 +58,8 @@ public: UniqueIndex( sal_uIntPtr _nStartIndex = 0 ) : UniqueIndexImpl(_nStartIndex) {} sal_uIntPtr Insert(T* p) { return UniqueIndexImpl::Insert(p); } - void Insert(sal_uIntPtr aIdx, T* p) { return UniqueIndexImpl::Insert(aIdx, p); } T* Get(sal_uIntPtr idx) const { return static_cast( UniqueIndexImpl::Get(idx) ); } T* Remove(sal_uIntPtr idx) { return static_cast( UniqueIndexImpl::Remove(idx) ); } - sal_uIntPtr Count() const { return UniqueIndexImpl::size(); } sal_uIntPtr GetIndexOf(T* p) const { return UniqueIndexImpl::GetIndexOf(p); } using UniqueIndexImpl::FirstIndex; -- cgit