This patch removes unused code as listed in unusedcode.easy
From 193f0208edeba24a820e9fe098456f5412d5e3a4 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@gmail.com>
Date: Mon, 13 Feb 2012 22:31:23 +0100
Subject: [PATCH] Remove unused code.

---
 editeng/inc/editeng/numitem.hxx  |    1 -
 editeng/source/items/numitem.cxx |   17 -----------------
 unusedcode.easy                  |    1 -
 3 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/editeng/inc/editeng/numitem.hxx b/editeng/inc/editeng/numitem.hxx
index 1084ea1..ea34a7f 100644
--- a/editeng/inc/editeng/numitem.hxx
+++ b/editeng/inc/editeng/numitem.hxx
@@ -278,7 +278,6 @@ public:
     const SvxNumberFormat*  Get(sal_uInt16 nLevel)const;
     const SvxNumberFormat&  GetLevel(sal_uInt16 nLevel)const;
     void                    SetLevel(sal_uInt16 nLevel, const SvxNumberFormat& rFmt, sal_Bool bIsValid = sal_True);
-    void                    SetLevel(sal_uInt16 nLevel, const SvxNumberFormat* pFmt);
 
     sal_Bool                    IsContinuousNumbering()const
                                             {return bContinuousNumbering;}
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 01fc463..ccb3455 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -759,23 +759,6 @@ void SvxNumRule::SetLevel( sal_uInt16 i, const SvxNumberFormat& rNumFmt, sal_Boo
     }
 }
 
-void SvxNumRule::SetLevel(sal_uInt16 nLevel, const SvxNumberFormat* pFmt)
-{
-    DBG_ASSERT(nLevel < SVX_MAX_NUM, "Wrong Level" );
-
-    if( nLevel < SVX_MAX_NUM )
-    {
-        aFmtsSet[nLevel] = 0 != pFmt;
-        if(pFmt)
-            SetLevel(nLevel, *pFmt);
-        else
-        {
-            delete aFmts[nLevel];
-            aFmts[nLevel] = 0;
-        }
-    }
-}
-
 String  SvxNumRule::MakeNumString( const SvxNodeNum& rNum, sal_Bool bInclStrings ) const
 {
     String aStr;
diff --git a/unusedcode.easy b/unusedcode.easy
index 9f4bf3e..95f65eb 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -369,7 +369,6 @@ SvxMSDffShapeTxBxSort::Insert(SvxMSDffShapeOrder* const*, unsigned short)
 SvxMSDffShapeTxBxSort::Insert(SvxMSDffShapeTxBxSort const*, unsigned short, unsigned short)
 SvxMSDffShapeTxBxSort::Remove(SvxMSDffShapeOrder* const&, unsigned short)
 SvxMSDffShapeTxBxSort::Remove(unsigned short, unsigned short)
-SvxNumRule::SetLevel(unsigned short, SvxNumberFormat const*)
 SvxOpenGraphicDialog::SetControlHelpIds(short const*, char const**)
 SvxPluginFileDlg::IsAvailable(unsigned short)
 SvxPopupWindowListBox::StartSelection()
-- 
1.7.7.6

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to