From ef2b4342e9f8a887bb840d8a6c875125139d433a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Jan 2017 08:21:03 +0200 Subject: loplugin: unnecessary destructor oox..sax Change-Id: Ie12bfabc92bce04d702f3e77aa5896366e49245e Reviewed-on: https://gerrit.libreoffice.org/33509 Tested-by: Jenkins Reviewed-by: Noel Grandin --- registry/source/reflread.cxx | 12 ------------ registry/source/reflwrit.cxx | 15 --------------- 2 files changed, 27 deletions(-) (limited to 'registry/source') diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 1df3a639aa09..97699af8e824 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -267,8 +267,6 @@ public: { } - ~ConstantPool(); - sal_uInt32 parseIndex(); // throws std::bad_alloc CPInfoTag readTag(sal_uInt16 index); @@ -288,10 +286,6 @@ public: // throws std::bad_alloc }; -ConstantPool::~ConstantPool() -{ -} - sal_uInt32 ConstantPool::parseIndex() { m_pIndex.reset(); @@ -891,8 +885,6 @@ public: } } - ~MethodList(); - sal_uInt32 parseIndex(); // throws std::bad_alloc const sal_Char* getMethodName(sal_uInt16 index); @@ -910,10 +902,6 @@ private: sal_uInt16 calcMethodParamIndex( const sal_uInt16 index ); }; -MethodList::~MethodList() -{ -} - sal_uInt16 MethodList::calcMethodParamIndex( const sal_uInt16 index ) { return (METHOD_OFFSET_PARAM_COUNT + sizeof(sal_uInt16) + (index * m_PARAM_ENTRY_SIZE)); diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index 59e712f5a966..e0b52b08c17c 100644 --- a/registry/source/reflwrit.cxx +++ b/registry/source/reflwrit.cxx @@ -430,7 +430,6 @@ public: RTParamMode m_mode; ParamEntry(); - ~ParamEntry(); void setData(const OString& typeName, const OString& name, @@ -442,10 +441,6 @@ ParamEntry::ParamEntry() { } -ParamEntry::~ParamEntry() -{ -} - void ParamEntry::setData(const OString& typeName, const OString& name, RTParamMode mode) @@ -471,7 +466,6 @@ public: RTFieldAccess m_access; ReferenceEntry(); - ~ReferenceEntry(); void setData(const OString& name, RTReferenceType refType, @@ -485,10 +479,6 @@ ReferenceEntry::ReferenceEntry() { } -ReferenceEntry::~ReferenceEntry() -{ -} - void ReferenceEntry::setData(const OString& name, RTReferenceType refType, const OString& doku, @@ -520,7 +510,6 @@ public: OString m_doku; MethodEntry(); - ~MethodEntry(); void setData(const OString& name, const OString& returnTypeName, @@ -544,10 +533,6 @@ MethodEntry::MethodEntry() { } -MethodEntry::~MethodEntry() -{ -} - void MethodEntry::setData(const OString& name, const OString& returnTypeName, RTMethodMode mode, -- cgit