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

2012-04-24 Thread Caolán McNamara
 sc/inc/dpitemdata.hxx  |2 --
 sc/source/core/data/dpitemdata.cxx |9 -
 unusedcode.easy|2 --
 3 files changed, 13 deletions(-)

New commits:
commit 858646a5eb5eae8703cfb64cd1cdbc553699a224
Author: Santiago Martinez smvar...@gmail.com
Date:   Mon Apr 23 19:24:37 2012 +0200

Remove unused code in dpitemdata.

diff --git a/sc/inc/dpitemdata.hxx b/sc/inc/dpitemdata.hxx
index 1996d68..46642a9 100644
--- a/sc/inc/dpitemdata.hxx
+++ b/sc/inc/dpitemdata.hxx
@@ -87,7 +87,6 @@ public:
 ScDPItemData();
 ScDPItemData(const ScDPItemData r);
 ScDPItemData(const rtl::OUString rStr);
-ScDPItemData(const rtl::OUString* pStr);
 ScDPItemData(sal_Int32 nGroupType, sal_Int32 nValue);
 ~ScDPItemData();
 
@@ -98,7 +97,6 @@ public:
 void SetRangeStart(double fVal);
 void SetRangeFirst();
 void SetRangeLast();
-void SetErrorString(const rtl::OUString rS);
 void SetErrorString(const rtl::OUString* pS);
 bool IsCaseInsEqual(const ScDPItemData r) const;
 
diff --git a/sc/source/core/data/dpitemdata.cxx 
b/sc/source/core/data/dpitemdata.cxx
index 83ca357..1bcc3a6 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -121,9 +121,6 @@ void ScDPItemData::DisposeString()
 ScDPItemData::ScDPItemData(const rtl::OUString rStr) :
 mpString(new rtl::OUString(rStr)), meType(String), mbStringInterned(false) 
{}
 
-ScDPItemData::ScDPItemData(const rtl::OUString* pStr) :
-mpString(pStr), meType(String), mbStringInterned(true) {}
-
 ScDPItemData::ScDPItemData(sal_Int32 nGroupType, sal_Int32 nValue) :
 meType(GroupValue), mbStringInterned(false)
 {
@@ -184,12 +181,6 @@ void ScDPItemData::SetRangeLast()
 meType = RangeStart;
 }
 
-void ScDPItemData::SetErrorString(const rtl::OUString rS)
-{
-SetString(rS);
-meType = Error;
-}
-
 void ScDPItemData::SetErrorString(const rtl::OUString* pS)
 {
 SetString(pS);
diff --git a/unusedcode.easy b/unusedcode.easy
index 046ba9a..a96ce89 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -56,8 +56,6 @@ ScConditionalFormats_Impl::Remove(unsigned short, unsigned 
short)
 ScCsvControl::ScCsvControl(Window*, ScCsvLayoutData const, long)
 
ScDBCollection::AnonDBs::erase(boost::void_ptr_iterator__gnu_debug::_Safe_iterator__gnu_cxx::__normal_iteratorvoid**,
 std::__cxx1998::vectorvoid*, std::allocatorvoid*  , 
std::__debug::vectorvoid*, std::allocatorvoid*  , ScDBData)
 ScDBCollection::AnonDBs::findByTable(short) const
-ScDPItemData::ScDPItemData(rtl::OUString const*)
-ScDPItemData::SetErrorString(rtl::OUString const)
 ScDPLabelData::ScDPLabelData(rtl::OUString const, short, bool)
 ScDPObject::HasGroups() const
 ScDocRowHeightUpdater::TabRanges::TabRanges()
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-02-13 Thread Michael Meeks
 sc/inc/chgtrack.hxx  |3 ---
 sc/source/core/tool/chgtrack.cxx |   15 ---
 sc/source/ui/inc/output.hxx  |1 -
 sc/source/ui/view/output2.cxx|8 
 unusedcode.easy  |4 
 5 files changed, 31 deletions(-)

New commits:
commit 952b46570c175dda8b975ad3bc8ef56e747796be
Author: Elton Chung el...@layerjet.com
Date:   Sat Feb 11 00:16:26 2012 +0800

Remove unused code

diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 16b8698..1c0b664 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -377,7 +377,6 @@ public:
 ScChangeAction* GetPrev() const { return pPrev; }
 
 bool IsDeletedIn() const;
-bool IsDeleted() const;
 bool IsDeletedIn( const ScChangeAction* ) const;
 bool IsDeletedInDelType( ScChangeActionType ) const;
 void RemoveAllDeletedIn();
@@ -833,9 +832,7 @@ public:
 
 // NewCell
 bool IsMatrixOrigin() const;
-bool IsMatrixReference() const;
 // OldCell
-bool IsOldMatrixOrigin() const;
 bool IsOldMatrixReference() const;
 };
 
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 82fbd93..9a2ccb5 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -345,11 +345,6 @@ bool ScChangeAction::IsDeletedIn() const
 return GetDeletedIn() != NULL;
 }
 
-bool ScChangeAction::IsDeleted() const
-{
-return IsDeleteType() || IsDeletedIn();
-}
-
 bool ScChangeAction::IsDeletedIn( const ScChangeAction* p ) const
 {
 ScChangeActionLinkEntry* pL = GetDeletedIn();
@@ -2155,16 +2150,6 @@ bool ScChangeActionContent::IsMatrixOrigin() const
 return GetContentCellType(GetNewCell()) == SC_CACCT_MATORG;
 }
 
-bool ScChangeActionContent::IsMatrixReference() const
-{
-return GetContentCellType(GetNewCell()) == SC_CACCT_MATREF;
-}
-
-bool ScChangeActionContent::IsOldMatrixOrigin() const
-{
-return GetContentCellType(GetOldCell()) == SC_CACCT_MATORG;
-}
-
 bool ScChangeActionContent::IsOldMatrixReference() const
 {
 return GetContentCellType(GetOldCell()) == SC_CACCT_MATREF;
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index 9a81555..f9a14a7 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -123,7 +123,6 @@ private:
 void calcMargins(long rTop, long rLeft, long rBottom, long rRight, 
double nPPTX, double nPPTY) const;
 void calcPaperSize(Size rPaperSize, const Rectangle rAlignRect, 
double nPPTX, double nPPTY) const;
 void getEngineSize(ScFieldEditEngine* pEngine, long rWidth, long 
rHeight) const;
-long getEngineWidth(ScFieldEditEngine* pEngine) const;
 bool hasLineBreak() const;
 bool isHyperlinkCell() const;
 
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 82a9905..8122c94 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2327,14 +2327,6 @@ void 
ScOutputData::DrawEditParam::getEngineSize(ScFieldEditEngine* pEngine, long
 rHeight = nEngineHeight;
 }
 
-long ScOutputData::DrawEditParam::getEngineWidth(ScFieldEditEngine* pEngine) 
const
-{
-if (mbBreak  meOrient != SVX_ORIENTATION_STACKED  !mbAsianVertical)
-return 0;
-else
-return static_castlong(pEngine-CalcTextWidth());
-}
-
 bool ScOutputData::DrawEditParam::hasLineBreak() const
 {
 return (mbBreak || (meOrient == SVX_ORIENTATION_STACKED) || 
mbAsianVertical);
diff --git a/unusedcode.easy b/unusedcode.easy
index 540da7c..bf8ac97 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -127,9 +127,6 @@ ScAddInDocs::Insert(ScAddInDocs const*, unsigned short, 
unsigned short)
 ScAddInDocs::Insert(ScDocument* const, unsigned short)
 ScAddInDocs::Insert(ScDocument* const*, unsigned short)
 ScAddInDocs::Remove(ScDocument* const, unsigned short)
-ScChangeAction::IsDeleted() const
-ScChangeActionContent::IsMatrixReference() const
-ScChangeActionContent::IsOldMatrixOrigin() const
 ScChangeActionContent::SetNewValue(rtl::OUString const, ScDocument*)
 ScChartListener::ScChartListener(rtl::OUString const, ScDocument*, ScRange 
const)
 ScChartListener::SetName(rtl::OUString const)
@@ -168,7 +165,6 @@ ScHTMLColOffset_SAR::_ForEach(unsigned short, unsigned 
short, unsigned char (*)(
 ScMyCellInfo::ScMyCellInfo()
 ScNameDefDlg::LinkStubEdModifyHdl(void*, void*)
 
ScNamedRangeObj::getImplementation(com::sun::star::uno::Referencecom::sun::star::uno::XInterface)
-ScOutputData::DrawEditParam::getEngineWidth(ScFieldEditEngine*) const
 ScRTFColTwips::Insert(ScRTFColTwips const*, unsigned short, unsigned short)
 ScRTFColTwips::Insert(unsigned long const, unsigned short)
 ScRTFColTwips::Insert(unsigned long const*, unsigned short)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy vbahelper/inc vbahelper/source xmloff/inc xmloff/source

2012-02-05 Thread Ivan Timofeev
 sc/inc/cellsuno.hxx |4 --
 sc/source/filter/xml/XMLExportDDELinks.cxx  |   17 --
 sc/source/filter/xml/XMLExportDDELinks.hxx  |2 -
 sc/source/filter/xml/xmlfilti.cxx   |   11 --
 sc/source/filter/xml/xmlfilti.hxx   |2 -
 sc/source/ui/unoobj/cellsuno.cxx|   33 
 sc/source/ui/vba/vbacommentshape.cxx|6 ---
 sc/source/ui/vba/vbacommentshape.hxx|3 -
 sc/source/ui/vba/vbawindows.cxx |5 ---
 sc/source/ui/vba/vbawindows.hxx |1 
 unusedcode.easy |   16 -
 vbahelper/inc/vbahelper/vbashape.hxx|1 
 vbahelper/inc/vbahelper/vbashapes.hxx   |1 
 vbahelper/source/vbahelper/vbacommandbarcontrol.cxx |5 ---
 vbahelper/source/vbahelper/vbacommandbarcontrol.hxx |1 
 vbahelper/source/vbahelper/vbashape.cxx |6 ---
 vbahelper/source/vbahelper/vbashapes.cxx|   28 
 xmloff/inc/SchXMLExport.hxx |2 -
 xmloff/source/chart/SchXMLExport.cxx|   28 
 xmloff/source/chart/SchXMLPlotAreaContext.cxx   |8 
 xmloff/source/chart/SchXMLPlotAreaContext.hxx   |2 -
 21 files changed, 182 deletions(-)

New commits:
commit 9c06348b32bd799241f23b1c2d75a46cf498d015
Author: Elton Chung el...@layerjet.com
Date:   Sun Feb 5 14:39:47 2012 +0800

Remove unused code.

diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 8d17087..c2733bd 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -869,10 +869,6 @@ public:
 
 // XML import needs to set results at formula 
cells,
 // not meant for any other purpose.
-voidSetFormulaResultString( const ::rtl::OUString 
rResult );
-voidSetFormulaResultDouble( double fResult );
-voidSetFormulaWithGrammar( const ::rtl::OUString 
rFormula,
-const ::rtl::OUString rFormulaNmsp, const 
formula::FormulaGrammar::Grammar );
 const ScAddressGetPosition() const { return aCellPos; }
 
 voidInputEnglishString( const ::rtl::OUString rText );
diff --git a/sc/source/filter/xml/XMLExportDDELinks.cxx 
b/sc/source/filter/xml/XMLExportDDELinks.cxx
index 81734b9..e828f74 100644
--- a/sc/source/filter/xml/XMLExportDDELinks.cxx
+++ b/sc/source/filter/xml/XMLExportDDELinks.cxx
@@ -54,23 +54,6 @@ ScXMLExportDDELinks::~ScXMLExportDDELinks()
 {
 }
 
-bool ScXMLExportDDELinks::CellsEqual(const bool bPrevEmpty, const bool 
bPrevString, const String sPrevValue, const double fPrevValue,
- const bool bEmpty, const bool bString, const String 
sValue, const double fValue) const
-{
-if (bEmpty == bPrevEmpty)
-if (bEmpty)
-return true;
-else if (bString == bPrevString)
-if (bString)
-return (sPrevValue == sValue);
-else
-return (fPrevValue == fValue);
-else
-return false;
-else
-return false;
-}
-
 void ScXMLExportDDELinks::WriteCell(const ScMatrixValue aVal, sal_Int32 
nRepeat)
 {
 bool bString = ScMatrix::IsNonValueType(aVal.nType);
diff --git a/sc/source/filter/xml/XMLExportDDELinks.hxx 
b/sc/source/filter/xml/XMLExportDDELinks.hxx
index 74171a9..e92fa20 100644
--- a/sc/source/filter/xml/XMLExportDDELinks.hxx
+++ b/sc/source/filter/xml/XMLExportDDELinks.hxx
@@ -39,8 +39,6 @@ class ScXMLExportDDELinks
 {
 ScXMLExportrExport;
 
-boolCellsEqual(const bool bPrevEmpty, const bool 
bPrevString, const String sPrevValue, const double fPrevValue,
-const bool bEmpty, const bool bString, 
const String sValue, const double fValue) const;
 voidWriteCell(const ScMatrixValue aVal, sal_Int32 
nRepeat);
 voidWriteTable(const sal_Int32 nPos);
 public:
diff --git a/sc/source/filter/xml/xmlfilti.cxx 
b/sc/source/filter/xml/xmlfilti.cxx
index 54b7f62..a680370 100644
--- a/sc/source/filter/xml/xmlfilti.cxx
+++ b/sc/source/filter/xml/xmlfilti.cxx
@@ -167,17 +167,6 @@ void ScXMLFilterContext::EndElement()
 
pDatabaseRangeContext-SetFilterConditionSourceRangeAddress(aConditionSourceRangeAddress);
 }
 
-void ScXMLFilterContext::SetCaseSensitive(bool b)
-{
-mrQueryParam.bCaseSens = b;
-}
-
-void ScXMLFilterContext::SetUseRegularExpressions(bool b)
-{
-if (!bUseRegularExpressions)
-bUseRegularExpressions = b;
-}
-
 void ScXMLFilterContext::OpenConnection(bool b)
 {
 maConnStack.push_back(ConnStackItem(b));
diff --git a/sc/source/filter/xml/xmlfilti.hxx 
b/sc/source/filter/xml/xmlfilti.hxx
index 759f954..952b705 100644
--- a/sc/source/filter/xml/xmlfilti.hxx

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

2012-02-02 Thread Julien Nabet
 sc/inc/nameuno.hxx  |5 -
 sc/source/ui/unoobj/nameuno.cxx |8 
 unusedcode.easy |1 -
 3 files changed, 14 deletions(-)

New commits:
commit 0dbda27fb81bc063c865a6829fb035322fd77035
Author: Julien Nabet serval2...@yahoo.fr
Date:   Thu Feb 2 23:18:07 2012 +0100

Remove things not used

diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index a83748c..ee66e26 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -173,11 +173,6 @@ public:
 throw(::com::sun::star::uno::RuntimeException);
 virtual ::com::sun::star::uno::Sequence ::rtl::OUString  SAL_CALL 
getSupportedServiceNames()
 throw(::com::sun::star::uno::RuntimeException);
-
-// methods accessible via getImplementation()
-voidSetContentWithGrammar( const ::rtl::OUString 
aContent,
-const formula::FormulaGrammar::Grammar 
eGrammar )
-throw(::com::sun::star::uno::RuntimeException);
 };
 
 
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index efb00e6..48baee8 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -265,14 +265,6 @@ void SAL_CALL ScNamedRangeObj::setContent( const 
rtl::OUString aContent )
 Modify_Impl( NULL, NULL, aContStr, NULL, 
NULL,formula::FormulaGrammar::GRAM_PODF_A1 );
 }
 
-void ScNamedRangeObj::SetContentWithGrammar( const ::rtl::OUString aContent,
-const formula::FormulaGrammar::Grammar 
eGrammar )
-throw(::com::sun::star::uno::RuntimeException)
-{
-String aContStr(aContent);
-Modify_Impl( NULL, NULL, aContStr, NULL, NULL, eGrammar );
-}
-
 table::CellAddress SAL_CALL ScNamedRangeObj::getReferencePosition()
 throw(uno::RuntimeException)
 {
diff --git a/unusedcode.easy b/unusedcode.easy
index 15364fe..28a91d7 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -176,7 +176,6 @@ ScMyCellInfo::ScMyCellInfo()
 ScMyStyleRanges::SetStylesToRanges(ScRangeList*, rtl::OUString const*, short, 
rtl::OUString const*, ScXMLImport)
 ScMyStyleRanges::SetStylesToRanges(ScRangeListRef, rtl::OUString const*, 
short, rtl::OUString const*, ScXMLImport)
 ScNameDefDlg::LinkStubEdModifyHdl(void*, void*)
-ScNamedRangeObj::SetContentWithGrammar(rtl::OUString const, 
formula::FormulaGrammar::Grammar)
 
ScNamedRangeObj::getImplementation(com::sun::star::uno::Referencecom::sun::star::uno::XInterface)
 ScOutputData::DrawEditParam::getEngineWidth(ScFieldEditEngine*) const
 ScRTFColTwips::Insert(ScRTFColTwips const*, unsigned short, unsigned short)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-31 Thread Noel Power
 sc/inc/scdll.hxx  |1 
 sc/source/core/inc/ddelink.hxx|1 
 sc/source/core/tool/ddelink.cxx   |   11 -
 sc/source/ui/app/scdll.cxx|   10 
 sc/source/ui/dbgui/fieldwnd.cxx   |5 
 sc/source/ui/inc/areasave.hxx |1 
 sc/source/ui/inc/cellmergeoption.hxx  |1 
 sc/source/ui/inc/fieldwnd.hxx |1 
 sc/source/ui/inc/scuitphfedit.hxx |4 ---
 sc/source/ui/pagedlg/scuitphfedit.cxx |   39 --
 sc/source/ui/undo/areasave.cxx|5 
 sc/source/ui/view/cellmergeoption.cxx |9 ---
 unusedcode.easy   |9 ---
 13 files changed, 97 deletions(-)

New commits:
commit 9c66fca6ceaa3ba4ad79264a56a992828a92f536
Author: Elton Chung el...@elton.tk
Date:   Tue Jan 31 12:36:47 2012 +

Remove unsed code

diff --git a/sc/inc/scdll.hxx b/sc/inc/scdll.hxx
index 93cff7e..43a9c9f 100644
--- a/sc/inc/scdll.hxx
+++ b/sc/inc/scdll.hxx
@@ -61,7 +61,6 @@ public:
 
 // DLL-init/exit-code must be linked to the DLL only
 static void Init(); // called directly after loading the DLL
-static void Exit(); // called directly befor unloading the DLL
 
 static sal_uLongDetectFilter( SfxMedium rMedium, const SfxFilter** 
ppFilter,
 SfxFilterFlags nMust, SfxFilterFlags nDont 
);
diff --git a/sc/source/core/inc/ddelink.hxx b/sc/source/core/inc/ddelink.hxx
index e3794e4..216d6d6 100644
--- a/sc/source/core/inc/ddelink.hxx
+++ b/sc/source/core/inc/ddelink.hxx
@@ -87,7 +87,6 @@ public:
 const String   GetItem() const { return aItem; }
 sal_uInt8   GetMode() const { return nMode; }
 
-voidResetValue();   // Wert zuruecksetzen
 voidTryUpdate();
 
 sal_BoolNeedsUpdate() const { return bNeedUpdate; }
diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index 3bd75ae..5d36e52 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -228,17 +228,6 @@ sfx2::SvBaseLink::UpdateResult ScDdeLink::DataChanged(
 return SUCCESS;
 }
 
-void ScDdeLink::ResetValue()
-{
-pResult.reset();
-
-//  Es hat sich was getan...
-//  Tracking, FID_DATACHANGED etc. passiert von aussen
-
-if (HasListeners())
-Broadcast( ScHint( SC_HINT_DATACHANGED, ScAddress(), NULL ) );
-}
-
 void ScDdeLink::ListenersGone()
 {
 sal_Bool bWas = bIsInUpdate;
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 9cf9555..0a57bf6 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -312,16 +312,6 @@ void ScDLL::Init()
 //  StarOne Services are now handled in the registry
 }
 
-void ScDLL::Exit()
-{
-// the SxxModule must be destroyed
-ScModule **ppShlPtr = (ScModule**) GetAppData(SHL_CALC);
-delete (*ppShlPtr);
-(*ppShlPtr) = NULL;
-
-//  ScGlobal::Clear ist schon im Module-dtor
-}
-
 //--
 //  Statusbar
 //--
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 40eb873..9139be4 100644
--- a/sc/source/ui/dbgui/fieldwnd.cxx
+++ b/sc/source/ui/dbgui/fieldwnd.cxx
@@ -254,11 +254,6 @@ size_t ScDPFieldControlBase::GetSelectedField() const
 return mnFieldSelected;
 }
 
-void ScDPFieldControlBase::SetSelectedField(size_t nSelected)
-{
-mnFieldSelected = nSelected;
-}
-
 vectorScDPFieldControlBase::FieldName ScDPFieldControlBase::GetFieldNames()
 {
 return maFieldNames;
diff --git a/sc/source/ui/inc/areasave.hxx b/sc/source/ui/inc/areasave.hxx
index c9ff348..1a0b1cd 100644
--- a/sc/source/ui/inc/areasave.hxx
+++ b/sc/source/ui/inc/areasave.hxx
@@ -78,7 +78,6 @@ public:
 
 const ScAreaLinkSaver* operator[](size_t nIndex) const;
 size_t size() const;
-void clear();
 void push_back(ScAreaLinkSaver* p);
 };
 
diff --git a/sc/source/ui/inc/cellmergeoption.hxx 
b/sc/source/ui/inc/cellmergeoption.hxx
index ad5fe34..62e4279 100644
--- a/sc/source/ui/inc/cellmergeoption.hxx
+++ b/sc/source/ui/inc/cellmergeoption.hxx
@@ -44,7 +44,6 @@ struct ScCellMergeOption
 SCROW mnEndRow;
 bool mbCenter;
 
-explicit ScCellMergeOption();
 explicit ScCellMergeOption(const ScRange rRange);
 explicit ScCellMergeOption(SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
diff --git a/sc/source/ui/inc/fieldwnd.hxx b/sc/source/ui/inc/fieldwnd.hxx
index 2b232cf..49fc2ed 100644
--- a/sc/source/ui/inc/fieldwnd.hxx
+++ b/sc/source/ui/inc/fieldwnd.hxx
@@ -149,7 +149,6 @@ public:
 voidGetExistingIndex( const Point rPos, size_t rnIndex );
 
 size_t GetSelectedField() const;
-void SetSelectedField(size_t nSelected);
 
 /** Selects the next field. Called i.e. after 

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

2012-01-17 Thread Thomas Arnhold
 sc/inc/dpglobal.hxx  |6 ---
 sc/inc/dpobject.hxx  |4 --
 sc/inc/dpsave.hxx|1 
 sc/inc/dptablecache.hxx  |5 ---
 sc/source/core/data/dpobject.cxx |   39 ---
 sc/source/core/data/dpsave.cxx   |   57 --
 sc/source/core/data/dptablecache.cxx |   58 ---
 sc/source/ui/dbgui/fieldwnd.cxx  |   11 --
 sc/source/ui/inc/fieldwnd.hxx|6 ---
 unusedcode.easy  |   14 
 10 files changed, 201 deletions(-)

New commits:
commit a47cb498471f38987c248519435bc4867ffa456e
Author: Thomas Arnhold tho...@arnhold.org
Date:   Tue Jan 17 12:53:28 2012 +0100

remove unused ScDP* methods

diff --git a/sc/inc/dpglobal.hxx b/sc/inc/dpglobal.hxx
index 9d99b69..55a6aea 100644
--- a/sc/inc/dpglobal.hxx
+++ b/sc/inc/dpglobal.hxx
@@ -136,23 +136,17 @@ public:
 // case insensitive equality
 static sal_Int32Compare( const ScDPItemData rA, const ScDPItemData 
rB );
 
-#if OSL_DEBUG_LEVEL  1
-voiddump() const;
-#endif
-
 public:
 bool IsHasData() const ;
 bool IsHasErr() const ;
 bool IsValue() const;
 String  GetString() const ;
 double  GetValue() const ;
-sal_uLongGetNumFormat() const ;
 bool HasStringData() const ;
 bool IsDate() const;
 bool HasDatePart() const;
 void SetDate( bool b ) ;
 
-TypedStrData*  CreateTypeString( );
 sal_uInt8GetType() const;
 sal_uInt8  GetFlag() throw() { return mbFlag; }
 const sal_uInt8  GetFlag() const throw() { return 
const_castScDPItemData*(this)-GetFlag(); }
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 47c1999..a894833 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -278,7 +278,6 @@ public:
 
 private:
 void updateCache(const ScRange rRange, std::setScDPObject* rRefs);
-void removeCache(const ScRange rRange);
 bool remove(const ScDPCache* p);
 };
 
@@ -298,7 +297,6 @@ public:
 size_t size() const;
 private:
 void updateCache(const rtl::OUString rName, const ScRange rRange, 
std::setScDPObject* rRefs);
-void removeCache(const ::rtl::OUString rName);
 bool remove(const ScDPCache* p);
 };
 
@@ -331,7 +329,6 @@ public:
 public:
 DBCaches(ScDocument* pDoc);
 const ScDPCache* getCache(sal_Int32 nSdbType, const ::rtl::OUString 
rDBName, const ::rtl::OUString rCommand);
-size_t size() const;
 
 private:
 com::sun::star::uno::Referencecom::sun::star::sdbc::XRowSet 
createRowSet(
@@ -339,7 +336,6 @@ public:
 
 void updateCache(sal_Int32 nSdbType, const ::rtl::OUString rDBName, 
const ::rtl::OUString rCommand,
  std::setScDPObject* rRefs);
-void removeCache(sal_Int32 nSdbType, const ::rtl::OUString rDBName, 
const ::rtl::OUString rCommand);
 bool remove(const ScDPCache* p);
 };
 
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx
index fc16b49..ee2fd6d 100644
--- a/sc/inc/dpsave.hxx
+++ b/sc/inc/dpsave.hxx
@@ -328,7 +328,6 @@ public:
 { return bDrillDown; }
 
 void WriteToSource( const 
com::sun::star::uno::Referencecom::sun::star::sheet::XDimensionsSupplier 
xSource );
-void Refresh( const 
com::sun::star::uno::Referencecom::sun::star::sheet::XDimensionsSupplier 
xSource );
 bool IsEmpty() const;
 
 const ScDPDimensionSaveData* GetExistingDimensionData() const
diff --git a/sc/inc/dptablecache.hxx b/sc/inc/dptablecache.hxx
index dcfc066..c4c2ebc 100644
--- a/sc/inc/dptablecache.hxx
+++ b/sc/inc/dptablecache.hxx
@@ -103,19 +103,15 @@ public:
 SCROW GetIdByItemData( long nDim, const String sItemData ) const;
 SCROW GetIdByItemData( long nDim, const ScDPItemData rData ) const;
 
-SCROW GetAdditionalItemID ( const String sItemData ) const;
 SCROW GetAdditionalItemID( const ScDPItemData rData ) const;
 
 SCCOL GetDimensionIndex( String sName) const;
-const ScDPItemData* GetSortedItemData( SCCOL nDim, SCROW nOrder ) const;
 sal_uLong GetNumType ( sal_uLong nFormat ) const;
 sal_uLong GetNumberFormat( long nDim ) const;
 bool  IsDateDimension( long nDim ) const ;
-sal_uLong GetDimNumType( SCCOL nDim) const;
 SCROW GetDimMemberCount( SCCOL nDim ) const;
 SCROW GetOrder( long nDim, SCROW nIndex ) const;
 
-SCROW GetSortedItemDataId( SCCOL nDim, SCROW nOrder ) const;
 const DataListType GetDimMemberValues( SCCOL nDim ) const;
 bool InitFromDoc(ScDocument* pDoc, const ScRange rRange);
 bool InitFromDataBase(const  ::com::sun::star::uno::Reference 
::com::sun::star::sdbc::XRowSet xRowSet, const Date rNullDate);
@@ -123,7 +119,6 @@ public:
 SCROW  GetRowCount() const;
 SCROW  GetItemDataId( sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty ) 
const;
 String GetDimensionName( sal_uInt16 nColumn ) const;
-bool IsEmptyMember( SCROW nRow,