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


Hi there,

another bit of unused core removed.

Petr
From deda0e8f7bfa57ff8b1568fd71466a8084c98efd Mon Sep 17 00:00:00 2001
From: Petr Vorel <petr.vorel@gmail.com>
Date: Mon, 20 Feb 2012 00:25:26 +0100
Subject: [PATCH] Remove unused code

---
 basic/source/comp/symtbl.cxx                       |    5 ----
 basic/source/inc/runtime.hxx                       |    1 -
 basic/source/inc/symtbl.hxx                        |    2 -
 basic/source/runtime/runtime.cxx                   |    5 ----
 basic/source/sbx/sbxdec.cxx                        |    7 -----
 basic/source/sbx/sbxdec.hxx                        |    1 -
 sc/inc/cell.hxx                                    |    1 -
 sc/source/core/data/cell.cxx                       |   26 --------------------
 .../filter/xml/XMLChangeTrackingImportHelper.cxx   |   14 ----------
 .../filter/xml/XMLChangeTrackingImportHelper.hxx   |    3 --
 svtools/source/edit/svmedit.cxx                    |    6 ----
 unusedcode.easy                                    |    5 ----
 12 files changed, 0 insertions(+), 76 deletions(-)

diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx
index 8f00f4a..8144e76 100644
--- a/basic/source/comp/symtbl.cxx
+++ b/basic/source/comp/symtbl.cxx
@@ -110,11 +110,6 @@ SbiSymPool::~SbiSymPool()
 {}
 
 
-void SbiSymPool::Clear()
-{
-    aData.DeleteAndDestroy( 0, aData.Count() );
-}
-
 SbiSymDef* SbiSymPool::First()
 {
     nCur = (sal_uInt16) -1;
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index 8c9064d..1c70828 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -433,7 +433,6 @@ public:
     sal_uInt16 GetDebugFlags() { return nFlags;  }
     void SetDebugFlags( sal_uInt16 nFl ) { nFlags = nFl;  }
     SbMethod* GetCaller();
-    SbxArray* GetParams();
     SbxVariable* GetExternalCaller(){ return mpExtCaller; }
 
     SbiForStack* FindForStackItemForCollection( class BasicCollection* pCollection );
diff --git a/basic/source/inc/symtbl.hxx b/basic/source/inc/symtbl.hxx
index b484c82..a0263f9 100644
--- a/basic/source/inc/symtbl.hxx
+++ b/basic/source/inc/symtbl.hxx
@@ -74,8 +74,6 @@ public:
     SbiSymPool( SbiStringPool&, SbiSymScope );
    ~SbiSymPool();
 
-    void Clear();
-
     void   SetParent( SbiSymPool* p )   { pParent = p;      }
     void   SetProcId( short n )         { nProcId = n;      }
     sal_uInt16 GetSize() const              { return aData.Count(); }
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 39c48c3..7fe3b17 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -902,11 +902,6 @@ SbMethod* SbiRuntime::GetCaller()
     return pMeth;
 }
 
-SbxArray* SbiRuntime::GetParams()
-{
-    return refParams;
-}
-
 //  Stacks
 
 // The expression-stack is available for the continous evaluation
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index bf36d88..3f95fa6 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -254,12 +254,6 @@ bool SbxDecimal::getChar( sal_Unicode& rVal )
     return bRet;
 }
 
-bool SbxDecimal::getByte( sal_uInt8& rVal )
-{
-    bool bRet = ( VarUI1FromDec( &maDec, &rVal ) == S_OK );
-    return bRet;
-}
-
 bool SbxDecimal::getShort( sal_Int16& rVal )
 {
     bool bRet = ( VarI2FromDec( &maDec, &rVal ) == S_OK );
@@ -369,7 +363,6 @@ void SbxDecimal::setUInt( unsigned int val )    { (void)val; }
 bool SbxDecimal::setString( ::rtl::OUString* pOUString )    { (void)pOUString;  return false; }
 
 bool SbxDecimal::getChar( sal_Unicode& rVal )   { (void)rVal; return false; }
-bool SbxDecimal::getByte( sal_uInt8& rVal )         { (void)rVal; return false; }
 bool SbxDecimal::getShort( sal_Int16& rVal )        { (void)rVal; return false; }
 bool SbxDecimal::getLong( sal_Int32& rVal )         { (void)rVal; return false; }
 bool SbxDecimal::getUShort( sal_uInt16& rVal )      { (void)rVal; return false; }
diff --git a/basic/source/sbx/sbxdec.hxx b/basic/source/sbx/sbxdec.hxx
index 533ffb9..3e86468 100644
--- a/basic/source/sbx/sbxdec.hxx
+++ b/basic/source/sbx/sbxdec.hxx
@@ -96,7 +96,6 @@ public:
     }
 
     bool getChar( sal_Unicode& rVal );
-    bool getByte( sal_uInt8& rVal );
     bool getShort( sal_Int16& rVal );
     bool getLong( sal_Int32& rVal );
     bool getUShort( sal_uInt16& rVal );
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index 52244f6..387ff69 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -375,7 +375,6 @@ public:
     ScAddress       aPos;
 
                     ~ScFormulaCell();
-                    ScFormulaCell();
 
     /** Empty formula cell, or with a preconstructed token array. */
     ScFormulaCell( ScDocument*, const ScAddress&, const ScTokenArray* = NULL,
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 74e9330..48d6391 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -723,32 +723,6 @@ ScStringCell::~ScStringCell()
 //      ScFormulaCell
 //
 
-ScFormulaCell::ScFormulaCell() :
-    ScBaseCell( CELLTYPE_FORMULA ),
-    eTempGrammar( FormulaGrammar::GRAM_DEFAULT),
-    pCode( NULL ),
-    pDocument( NULL ),
-    pPrevious(0),
-    pNext(0),
-    pPreviousTrack(0),
-    pNextTrack(0),
-    nFormatIndex(0),
-    nFormatType( NUMBERFORMAT_NUMBER ),
-    nSeenInIteration(0),
-    cMatrixFlag ( MM_NONE ),
-    bDirty( false ),
-    bChanged( false ),
-    bRunning( false ),
-    bCompile( false ),
-    bSubTotal( false ),
-    bIsIterCell( false ),
-    bInChangeTrack( false ),
-    bTableOpDirty( false ),
-    bNeedListening( false ),
-    aPos(0,0,0)
-{
-}
-
 ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos,
                               const String& rFormula,
                               const FormulaGrammar::Grammar eGrammar,
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx 
b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index 7a9b81e..55140b1 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -38,20 +38,6 @@
 
 #define SC_CHANGE_ID_PREFIX "ct"
 
-ScMyCellInfo::ScMyCellInfo()
-    : pCell(NULL),
-    sFormulaAddress(),
-    sFormula(),
-    sInputString(),
-    fValue(0.0),
-    nMatrixCols(0),
-    nMatrixRows(0),
-    eGrammar( formula::FormulaGrammar::GRAM_STORAGE_DEFAULT),
-    nType(NUMBERFORMAT_ALL),
-    nMatrixFlag(MM_NONE)
-{
-}
-
 ScMyCellInfo::ScMyCellInfo(ScBaseCell* pTempCell, const rtl::OUString& rFormulaAddress, const 
rtl::OUString& rFormula,
             const formula::FormulaGrammar::Grammar eTempGrammar, const rtl::OUString& rInputString,
             const double& rValue, const sal_uInt16 nTempType, const sal_uInt8 nTempMatrixFlag, 
const sal_Int32 nTempMatrixCols,
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx 
b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
index 56d4bf3..60b497c 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
@@ -64,9 +64,6 @@ struct ScMyCellInfo
     ~ScMyCellInfo();
 
     ScBaseCell* CreateCell(ScDocument* pDoc);
-
-private:
-    ScMyCellInfo(); // disabled
 };
 
 struct ScMyDeleted
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index bb5f4b3..e64de75 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -155,7 +155,6 @@ public:
     void        SetText( const String& rStr );
     String      GetText() const;
     String      GetText( LineEnd aSeparator ) const;
-    String      GetTextLines() const;
     String      GetTextLines( LineEnd aSeparator ) const;
 
     void        Resize();
@@ -540,11 +539,6 @@ String ImpSvMEdit::GetText( LineEnd aSeparator ) const
     return mpTextWindow->GetTextEngine()->GetText( aSeparator );
 }
 
-String ImpSvMEdit::GetTextLines() const
-{
-    return mpTextWindow->GetTextEngine()->GetTextLines();
-}
-
 String ImpSvMEdit::GetTextLines( LineEnd aSeparator ) const
 {
     return mpTextWindow->GetTextEngine()->GetTextLines( aSeparator );
diff --git a/unusedcode.easy b/unusedcode.easy
index eb5cec5..47b56a1 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -29,7 +29,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)
-ImpSvMEdit::GetTextLines() const
 ImpSvtData::~ImpSvtData()
 ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale&) const
 InsCapOptArr::Insert(InsCapOptArr const*, unsigned short, unsigned short)
@@ -62,8 +61,6 @@ SalGraphics::drawPolyLine(basegfx::B2DPolygon const&, double, basegfx::B2DVector
 SalGraphics::drawPolyPolygon(basegfx::B2DPolyPolygon const&, double)
 SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, 
com::sun::star::uno::Sequence<signed char>, unsigned char)
 SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned 
char)
-SbiRuntime::GetParams()
-SbiSymPool::Clear()
 SbxDecimal::getByte(unsigned char&)
 SbxDecimal::getInt(int&)
 SbxDecimal::getUInt(unsigned int&)
@@ -102,7 +99,6 @@ ScDPSaveDimension::Refresh(com::sun::star::uno::Reference<com::sun::star::sheet:
 ScDocRowHeightUpdater::TabRanges::TabRanges()
 ScDocument::SetAllTabRangeNames(std::__debug::map<short, ScRangeName const*, std::less<short>, 
std::allocator<std::pair<short const, ScRangeName const*> > > const&)
 
ScFilterDetect::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
 const&)
-ScFormulaCell::ScFormulaCell()
 ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short)
 ScHTMLColOffset::Insert(unsigned long const&, unsigned short&)
 ScHTMLColOffset::Insert(unsigned long const*, unsigned short)
@@ -110,7 +106,6 @@ ScHTMLColOffset::Remove(unsigned long const&, unsigned short)
 ScHTMLColOffset_SAR::Replace(unsigned long const&, unsigned short)
 ScHTMLColOffset_SAR::Replace(unsigned long const*, unsigned short, unsigned short)
 ScHTMLColOffset_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned long 
const&, void*), void*)
-ScMyCellInfo::ScMyCellInfo()
 ScNameDefDlg::LinkStubEdModifyHdl(void*, void*)
 ScNamedRangeObj::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
 ScRTFColTwips::Insert(ScRTFColTwips const*, unsigned short, unsigned short)
-- 
1.7.9


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.