[Libreoffice-commits] .: editeng/inc editeng/source unusedcode.easy

2012-02-14 Thread Michael Meeks
 editeng/inc/editeng/numitem.hxx  |1 -
 editeng/source/items/numitem.cxx |   17 -
 unusedcode.easy  |1 -
 3 files changed, 19 deletions(-)

New commits:
commit 1dc612970f57aa5599c6d1b7afb10a3f5f4403d2
Author: Santiago Martinez smvar...@gmail.com
Date:   Mon Feb 13 22:31:23 2012 +0100

Remove unused code.

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;
 voidSetLevel(sal_uInt16 nLevel, const SvxNumberFormat 
rFmt, sal_Bool bIsValid = sal_True);
-voidSetLevel(sal_uInt16 nLevel, const SvxNumberFormat* 
pFmt);
 
 sal_BoolIsContinuousNumbering()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 9a40c2f..5142e88 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()
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: editeng/inc editeng/source unusedcode.easy

2011-11-03 Thread Jan Holesovsky
 editeng/inc/editeng/editeng.hxx|   30 --
 editeng/source/editeng/editeng.cxx |  176 -
 unusedcode.easy|   25 -
 3 files changed, 1 insertion(+), 230 deletions(-)

New commits:
commit 46bc8b9027a6a68791973a3da702db39b3cd0e30
Author: Felix Zhang fezh...@suse.com
Date:   Thu Nov 3 15:59:37 2011 +0800

remove unused methods in EditEngine

diff --git a/editeng/inc/editeng/editeng.hxx b/editeng/inc/editeng/editeng.hxx
index 0db0464..f23223e 100644
--- a/editeng/inc/editeng/editeng.hxx
+++ b/editeng/inc/editeng/editeng.hxx
@@ -135,7 +135,6 @@ public:
 const SfxItemSet   GetEmptyItemSet();
 
 voidSetDefTab( sal_uInt16 nDefTab );
-sal_uInt16  GetDefTab() const;
 
 voidSetRefDevice( OutputDevice* pRefDef );
 OutputDevice*   GetRefDevice() const;
@@ -150,7 +149,6 @@ public:
 Color   GetBackgroundColor() const;
 Color   GetAutoColor() const;
 voidEnableAutoColor( sal_Bool b );
-sal_BoolIsAutoColorEnabled() const;
 voidForceAutoColor( sal_Bool b );
 sal_BoolIsForceAutoColor() const;
 
@@ -161,7 +159,6 @@ public:
 sal_uInt16  GetViewCount() const;
 sal_BoolHasView( EditView* pView ) const;
 EditView*   GetActiveView() const;
-voidSetActiveView( EditView* pView );
 
 voidSetPaperSize( const Size rSize );
 const Size GetPaperSize() const;
@@ -170,7 +167,6 @@ public:
 sal_BoolIsVertical() const;
 
 voidSetFixedCellHeight( sal_Bool bUseFixedCellHeight );
-sal_BoolIsFixedCellHeight() const;
 
 voidSetDefaultHorizontalTextDirection( 
EEHorizontalTextDirection eHTextDir );
 EEHorizontalTextDirection   GetDefaultHorizontalTextDirection() const;
@@ -181,18 +177,14 @@ public:
 voidTransliterateText( const ESelection rSelection, sal_Int32 
nTransliterationMode );
 
 voidSetAsianCompressionMode( sal_uInt16 nCompression );
-sal_uInt16  GetAsianCompressionMode() const;
 
 voidSetKernAsianPunctuation( sal_Bool bEnabled );
-sal_BoolIsKernAsianPunctuation() const;
 
 voidSetAddExtLeading( sal_Bool b );
-sal_BoolIsAddExtLeading() const;
 
 voidSetPolygon( const basegfx::B2DPolyPolygon 
rPolyPolygon );
 voidSetPolygon( const basegfx::B2DPolyPolygon 
rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon);
 voidClearPolygon();
-const PolyPolygon*  GetPolygon();
 
 const Size GetMinAutoPaperSize() const;
 voidSetMinAutoPaperSize( const Size rSz );
@@ -218,7 +210,6 @@ public:
 voidGetLineBoundaries( /*out*/sal_uInt16 rStart, 
/*out*/sal_uInt16 rEnd, sal_uInt16 nParagraph, sal_uInt16 nLine ) const;
 sal_uInt16  GetLineNumberAtIndex( sal_uInt16 nPara, sal_uInt16 
nIndex ) const;
 sal_uInt32  GetLineHeight( sal_uInt16 nParagraph, sal_uInt16 nLine = 0 
);
-sal_uInt16  GetFirstLineOffset( sal_uInt16 nParagraph );
 ParagraphInfos  GetParagraphInfos( sal_uInt16 nPara );
 sal_uInt16  FindParagraph( long nDocPosY );
 EPosition   FindDocPosition( const Point rDocPos ) const;
@@ -227,7 +218,6 @@ public:
 String  GetWord( sal_uInt16 nPara, xub_StrLen nIndex );
 
 ESelection  GetWord( const ESelection rSelection, sal_uInt16 
nWordType ) const;
-ESelection  SelectSentence( const ESelection rCurSel ) const;
 
 voidClear();
 voidSetText( const String rStr );
@@ -241,7 +231,6 @@ public:
 voidInsertParagraph( sal_uInt16 nPara, const EditTextObject 
rTxtObj );
 voidInsertParagraph( sal_uInt16 nPara, const String rText);
 
-voidSetText( sal_uInt16 nPara, const EditTextObject rTxtObj );
 voidSetText( sal_uInt16 nPara, const String rText);
 
 virtual voidSetParaAttribs( sal_uInt16 nPara, const 
SfxItemSet rSet );
@@ -261,7 +250,6 @@ public:
 voidRemoveAttribs( const ESelection rSelection, sal_Bool 
bRemoveParaAttribs, sal_uInt16 nWhich );
 
 voidShowParagraph( sal_uInt16 nParagraph, sal_Bool bShow = 
sal_True );
-sal_BoolIsParagraphVisible( sal_uInt16 nParagraph );
 
 ::svl::IUndoManager
 GetUndoManager();
@@ -285,7 +273,6 @@ public:
 LinkGetModifyHdl() const;
 
 sal_BoolIsInSelectionMode() const;
-voidStopSelectionMode();
 
 voidStripPortions();
 voidGetPortions( sal_uInt16 nPara, std::vectorsal_uInt16 
rList );
@@ -347,12 +334,6 @@ public:
 voidSetWordDelimiters( const String rDelimiters );
 String