diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 11:41:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 11:43:40 +0000 |
commit | 9bfd742d8cdc4aab3dd817f13ab4cfa5cc60ae12 (patch) | |
tree | 51815ec709869dd297c10b8359b3bc4736204a98 /include/vcl/lazydelete.hxx | |
parent | cfaba15c589f882cc0bcce5cd07bdf3d30f547f6 (diff) |
loplugin:unusedmethods
Change-Id: Ib008613fb06c82791c63d5b074a3e2ff1c3607a0
Reviewed-on: https://gerrit.libreoffice.org/35834
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/lazydelete.hxx')
-rw-r--r-- | include/vcl/lazydelete.hxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/vcl/lazydelete.hxx b/include/vcl/lazydelete.hxx index aef865dc234c..63196185701a 100644 --- a/include/vcl/lazydelete.hxx +++ b/include/vcl/lazydelete.hxx @@ -234,11 +234,6 @@ namespace vcl // set contents, returning old contents // ownership is transferred ! T* set( T* i_pNew ) { T* pOld = m_pT; m_pT = i_pNew; return pOld; } - - // set contents, deleting old contents - // ownership is transferred ! - void reset( T* i_pNew = nullptr ) - { OSL_ASSERT( i_pNew != m_pT || i_pNew == nullptr ); T* pOld = m_pT; m_pT = i_pNew; delete pOld; } }; /** Similar to DeleteOnDeinit, the DeleteUnoReferenceOnDeinit |