summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-10 16:23:59 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-22 14:19:37 +0000
commit3f8a921471d8ed5423fb572a076d882392c77dba (patch)
tree9316ef379bcdf2901677f5be3c53f1ebbec8d941 /include
parent0340e62fc9fa78cfe0a6718ac07f1ba31260ff5c (diff)
remove dead code
Change-Id: I0d3d1a14d8eb880a5a054fe2e736f8ac97f8b727 Reviewed-on: https://gerrit.libreoffice.org/10284 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/tools/ref.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 1d5a37ad2c67..98740f0747cf 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -229,17 +229,14 @@ public: \
inline ClassName##WeakRef( ) {} \
inline ClassName##WeakRef( ClassName* pObj ) { \
if( pObj ) _xHdl = pObj->GetHdl(); } \
- inline void Clear() { _xHdl.Clear(); } \
inline ClassName##WeakRef& operator = ( ClassName * pObj ) { \
_xHdl = pObj ? pObj->GetHdl() : 0; return *this; } \
inline bool Is() const { \
return _xHdl.Is() && _xHdl->GetObj(); } \
- inline ClassName * operator & () const { \
- return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
inline ClassName * operator -> () const { \
return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
- inline ClassName & operator * () const { \
- return *(ClassName*) _xHdl->GetObj(); } \
+ inline ClassName * operator & () const { \
+ return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
inline operator ClassName * () const { \
return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
};