summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-07 16:28:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-27 08:20:43 +0000
commit644487a1152c7586a7f20c7f372572a71d8494d5 (patch)
tree683cdbd755ec1660e75f930e5be4cd6867e3e734 /include/tools
parent1b4dff2c371d31c99f34324c3f6f31888bdc34d7 (diff)
loplugin:unusedmethods
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/errcode.hxx6
-rw-r--r--include/tools/pstm.hxx4
-rw-r--r--include/tools/ref.hxx8
-rw-r--r--include/tools/stream.hxx4
-rw-r--r--include/tools/unqidx.hxx3
5 files changed, 0 insertions, 25 deletions
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<T>( 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<T*>( UniqueIndexImpl::Get(idx) ); }
T* Remove(sal_uIntPtr idx) { return static_cast<T*>( UniqueIndexImpl::Remove(idx) ); }
- sal_uIntPtr Count() const { return UniqueIndexImpl::size(); }
sal_uIntPtr GetIndexOf(T* p) const { return UniqueIndexImpl::GetIndexOf(p); }
using UniqueIndexImpl::FirstIndex;