Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi everyone,

This patch removes unused destructor in the ImpSvtData class, as listed in unusedcode.easy
From bdfc550685d238a62602a4f93da0ab804d77b2f6 Mon Sep 17 00:00:00 2001
From: Javier Catala <j_catala@yahoo.com>
Date: Tue, 24 Apr 2012 20:24:17 +0200
Subject: [PATCH] Remove unused ImpSvtData destructor.

Committer: Javier Catala <j_catala@yahoo.com>

On branch master
Changes to be committed:

        modified:   svtools/inc/svtools/svtdata.hxx
        modified:   svtools/source/misc/svtdata.cxx
        modified:   unusedcode.easy
---
 svtools/inc/svtools/svtdata.hxx |    2 --
 svtools/source/misc/svtdata.cxx |    5 -----
 unusedcode.easy                 |    1 -
 3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/svtools/inc/svtools/svtdata.hxx b/svtools/inc/svtools/svtdata.hxx
index 8689915..cb96bc5 100644
--- a/svtools/inc/svtools/svtdata.hxx
+++ b/svtools/inc/svtools/svtdata.hxx
@@ -48,8 +48,6 @@ private:
         pItemDesruptList(0), pResMgr(0)
     {}
 
-    ~ImpSvtData();
-
 public:
     ResMgr * GetResMgr(const ::com::sun::star::lang::Locale aLocale);
     ResMgr * GetResMgr(); // VCL dependant, only available in SVT, not in SVL!
diff --git a/svtools/source/misc/svtdata.cxx b/svtools/source/misc/svtdata.cxx
index 66489f1..62b6588 100644
--- a/svtools/source/misc/svtdata.cxx
+++ b/svtools/source/misc/svtdata.cxx
@@ -39,11 +39,6 @@
 //
 //============================================================================
 
-ImpSvtData::~ImpSvtData()
-{
-    delete pResMgr;
-}
-
 //============================================================================
 ResMgr * ImpSvtData::GetResMgr(const ::com::sun::star::lang::Locale aLocale)
 {
diff --git a/unusedcode.easy b/unusedcode.easy
index d1f5e1d..3ab0009 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -10,7 +10,6 @@ HTMLControls::Insert(HTMLControl const**, unsigned short)
 HTMLControls::Insert(HTMLControls const*, unsigned short, unsigned short)
 HTMLControls::Remove(HTMLControl const*&, unsigned short)
 HTMLControls::Remove(unsigned short, unsigned short)
-ImpSvtData::~ImpSvtData()
 InsCapOptArr::Insert(InsCapOptArr const*, unsigned short, unsigned short)
 InsCapOptArr::Insert(InsCaptionOpt* const&, unsigned short&)
 InsCapOptArr::Insert(InsCaptionOpt* const*, unsigned short)
-- 
1.7.5.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.