[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
sc/inc/attrib.hxx |1 sc/source/core/data/attrib.cxx |6 - sc/source/filter/excel/xltoolbar.cxx|4 --- sc/source/filter/excel/xltoolbar.hxx|1 sc/source/ui/condformat/colorformat.cxx | 33 sc/source/ui/inc/colorformat.hxx|1 unusedcode.easy |3 -- 7 files changed, 49 deletions(-) New commits: commit 7b633213c0d814d0fd485a6070291944e9890cee Author: Matúš Kukan matus.ku...@gmail.com Date: Fri Oct 26 16:33:35 2012 +0200 unusedcode: sc: unused ctors Change-Id: Iaa082d85ef95c58da14013c80cb06a2e1112d4ef diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index eb051fd..af401d1 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -399,7 +399,6 @@ public: TYPEINFO(); explicit ScCondFormatItem(); -explicit ScCondFormatItem(sal_uInt32 nIndex); explicit ScCondFormatItem(const std::vectorsal_uInt32 nIndex); virtual ~ScCondFormatItem(); diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index 6a29e52..d666229 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -1228,12 +1228,6 @@ ScCondFormatItem::ScCondFormatItem(): { } -ScCondFormatItem::ScCondFormatItem( sal_uInt32 nIndex ): -SfxPoolItem( ATTR_CONDITIONAL ) -{ -maIndex.push_back(nIndex); -} - ScCondFormatItem::ScCondFormatItem( const std::vectorsal_uInt32 rIndex ): SfxPoolItem( ATTR_CONDITIONAL ), maIndex( rIndex ) diff --git a/sc/source/filter/excel/xltoolbar.cxx b/sc/source/filter/excel/xltoolbar.cxx index f582ab8..2bb994e 100644 --- a/sc/source/filter/excel/xltoolbar.cxx +++ b/sc/source/filter/excel/xltoolbar.cxx @@ -94,10 +94,6 @@ CTBS::CTBS() : bSignature(0), bVersion(0), reserved1(0), reserved2(0), reserved3 { } -ScCTB::ScCTB() : nViews( 0 ), ectbid(0) -{ -} - ScCTB::ScCTB(sal_uInt16 nNum ) : nViews( nNum ), ectbid(0) { } diff --git a/sc/source/filter/excel/xltoolbar.hxx b/sc/source/filter/excel/xltoolbar.hxx index cc97943..ed598d5 100644 --- a/sc/source/filter/excel/xltoolbar.hxx +++ b/sc/source/filter/excel/xltoolbar.hxx @@ -74,7 +74,6 @@ class ScCTB : public TBBase std::vector ScTBC rTBC; bool ImportCustomToolBar_Impl( ScCTBWrapper, CustomToolBarImportHelper ); public: -ScCTB(); ScCTB(sal_uInt16); ~ScCTB(){} void Print( FILE* ); diff --git a/sc/source/ui/condformat/colorformat.cxx b/sc/source/ui/condformat/colorformat.cxx index 7983591..8d77b8a 100644 --- a/sc/source/ui/condformat/colorformat.cxx +++ b/sc/source/ui/condformat/colorformat.cxx @@ -36,39 +36,6 @@ #include svx/drawitem.hxx #include vcl/msgbox.hxx -ScDataBarSettingsDlg::ScDataBarSettingsDlg(Window* pWindow, ScDocument* pDoc, const ScAddress rPos): -ModalDialog( pWindow, ScResId( RID_SCDLG_DATABAR ) ), -maBtnOk( this, ScResId( BTN_OK ) ), -maBtnCancel( this, ScResId( BTN_CANCEL ) ), -maFlBarColors( this, ScResId( FL_BAR_COLORS ) ), -maFlAxes( this, ScResId( FL_AXIS ) ), -maFlValues( this, ScResId( FL_VALUES ) ), -maFtMin( this, ScResId( FT_MINIMUM ) ), -maFtMax( this, ScResId( FT_MAXIMUM ) ), -maFtPositive( this, ScResId( FT_POSITIVE ) ), -maFtNegative( this, ScResId( FT_NEGATIVE ) ), -maFtPosition( this, ScResId( FT_POSITION ) ), -maFtAxisColor( this, ScResId( FT_COLOR_AXIS ) ), -maLbPos( this, ScResId( LB_POS ) ), -maLbNeg( this, ScResId( LB_NEG ) ), -maLbAxisCol( this, ScResId( LB_COL_AXIS ) ), -maLbTypeMin( this, ScResId( LB_TYPE ) ), -maLbTypeMax( this, ScResId( LB_TYPE ) ), -maLbAxisPos( this, ScResId( LB_AXIS_POSITION ) ), -maEdMin( this, ScResId( ED_MIN ) ), -maEdMax( this, ScResId( ED_MAX ) ), -mpNumberFormatter( pDoc-GetFormatTable() ), -mpDoc(pDoc), -maPos(rPos) -{ -Init(); -FreeResource(); - -maLbTypeMin.SelectEntryPos(0); -maLbTypeMax.SelectEntryPos(0); -maLbAxisPos.SelectEntryPos(0); -} - namespace { void SetType(const ScColorScaleEntry* pEntry, ListBox rLstBox) diff --git a/sc/source/ui/inc/colorformat.hxx b/sc/source/ui/inc/colorformat.hxx index 3c58131..13bb74b 100644 --- a/sc/source/ui/inc/colorformat.hxx +++ b/sc/source/ui/inc/colorformat.hxx @@ -75,7 +75,6 @@ private: void Init(); public: -ScDataBarSettingsDlg(Window* pParent, ScDocument* pDoc, const ScAddress rPos); ScDataBarSettingsDlg(Window* pParent, const ScDataBarFormatData rData, ScDocument* pDoc, const ScAddress rPos); ScDataBarFormatData* GetData(); diff --git a/unusedcode.easy b/unusedcode.easy index 9d9d3a6..6c09c56 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1,10 +1,7 @@ FontSelectPattern::FontSelectPattern(PhysicalFontFace const, Size const, float, int, bool) RelatedMultipart::getIds() SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char) -ScCTB::ScCTB()
[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
sc/inc/compressedarray.hxx | 185 sc/source/core/data/compressedarray.cxx | 27 unusedcode.easy |9 - 3 files changed, 221 deletions(-) New commits: commit 07090cac4251e254b21676b77742c07f28cccaf4 Author: Matúš Kukan matus.ku...@gmail.com Date: Fri Aug 10 22:50:25 2012 +0200 sc: this appears to be unused Change-Id: I22a759ef55a46dc560ebe5f802c937f1d47bf645 diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx index eb38a3d..a20963d 100644 --- a/sc/inc/compressedarray.hxx +++ b/sc/inc/compressedarray.hxx @@ -36,8 +36,6 @@ const size_t nScCompressedArrayDelta = 4; -template typename A, typename D class ScCompressedArrayIterator; - /** Compressed array of row (or column) entries, e.g. heights, flags, ... The array stores ranges of values such that consecutive values occupy only @@ -102,13 +100,8 @@ public: // methods public for the coupled array sum methods /** Obtain index into entries for nPos */ SC_DLLPUBLIC size_t Search( A nPos ) const; -/** Get number of entries */ -size_t GetEntryCount() const; protected: - -friend class ScCompressedArrayIteratorA,D; - size_t nCount; size_t nLimit; size_t nDelta; @@ -165,184 +158,6 @@ const D ScCompressedArrayA,D::GetNextValue( size_t nIndex, A nEnd ) const return pData[nEntry].aValue; } - -template typename A, typename D -size_t ScCompressedArrayA,D::GetEntryCount() const -{ -return nCount; -} - - -// === ScCompressedArrayIterator = - -/** Iterator for ScCompressedArray. - -@ATTENTION: the iterator is not persistant if the underlying -ScCompressedArray happens to be changed by any means, for example by -setting new values or adding or removing or combining entries. If you do -such things inside a loop you MUST resynchronize the iterator by calling -methodResync()/method with the row where resynchronization should -start. After doing so, methodGetRangeStart()/method and -methodGetRangeEnd()/method may not point to the previous access points -anymore. Use with care. - */ - -template typename A, typename D class ScCompressedArrayIterator -{ -public: -ScCompressedArrayIterator( -const ScCompressedArrayA,D rArray, -A nStart, A nEnd ); -/// Set new start and end, position on start. -voidNewLimits( A nStart, A nEnd ); -A GetIterStart() const; -A GetIterEnd() const; -/// Advance by a single access point (e.g. row). -booloperator ++(); -A GetPos() const; -operator bool() const; -const Doperator *() const; -/// Advance an entire range, one entry of the array. -boolNextRange(); -A GetRangeStart() const; -A GetRangeEnd() const; -/// Resync to underlying array, calling Search(). -voidResync( A nPos ); -/** Set position without resyncing, avoid calling Search() if possible. -Position obtained from steering coupled iterator is NOT checked for -iterator bounds. */ -template typename X -voidFollow( const ScCompressedArrayIteratorA,X ); - -private: -const ScCompressedArrayA,D rArray; -size_t nIndex; -A nIterStart; -A nIterEnd; -A nCurrent; -boolbEnd; -}; - - -template typename A, typename D -ScCompressedArrayIteratorA,D::ScCompressedArrayIterator( -const ScCompressedArrayA,D rArrayP, A nStart, A nEnd ) -: rArray( rArrayP ) -// other values set in NewLimits() -{ -NewLimits( nStart, nEnd); -} - - -template typename A, typename D -void ScCompressedArrayIteratorA,D::NewLimits( A nStart, A nEnd ) -{ -nIterStart = nStart; -nIterEnd = nEnd; -nIndex = rArray.Search( nStart); -nCurrent = GetRangeStart(); -bEnd = (nIterEnd nIterStart); -} - - -template typename A, typename D -A ScCompressedArrayIteratorA,D::GetIterStart() const -{ -return nIterStart; -} - - -template typename A, typename D -A ScCompressedArrayIteratorA,D::GetIterEnd() const -{ -return nIterEnd; -} - - -template typename A, typename D -bool ScCompressedArrayIteratorA,D::operator++() -{ -if (nCurrent GetRangeEnd()) -{ -++nCurrent; -return true; -} -else -return NextRange(); -} - - -template typename A, typename D -A
[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
sc/inc/document.hxx |4 sc/source/core/data/document.cxx | 19 --- unusedcode.easy |2 -- 3 files changed, 25 deletions(-) New commits: commit 49ab16c9ad3eb0d27f8c66f2b535a8495671878f Author: Julien Nabet serval2...@yahoo.fr Date: Thu Aug 9 19:34:13 2012 +0200 Bin 2 other functions ScDocument::GetFormattedAndUsedArea(short, short, int) const ScDocument::InitializeAllNoteCaptions(bool) Change-Id: I210815aef7c4096b040af841444dc65dd5138606 diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 8fcdc6d..7b8e48b 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -816,9 +816,6 @@ public: /** Creates the captions of all uninitialized cell notes in the specified sheet. @param bForced True = always create all captions, false = skip when Undo is disabled. */ voidInitializeNoteCaptions( SCTAB nTab, bool bForced = false ); -/** Creates the captions of all uninitialized cell notes in all sheets. -@param bForced True = always create all captions, false = skip when Undo is disabled. */ -voidInitializeAllNoteCaptions( bool bForced = false ); voidSetDrawPageSize(SCTAB nTab); @@ -935,7 +932,6 @@ public: SCCOL rEndCol, SCROW rEndRow, bool bIncludeOld, bool bOnlyDown ) const; SC_DLLPUBLIC bool GetCellArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow ) const; SC_DLLPUBLIC bool GetTableArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow ) const; -SC_DLLPUBLIC void GetFormattedAndUsedArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow ) const; SC_DLLPUBLIC bool GetPrintArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow, bool bNotes = true ) const; SC_DLLPUBLIC bool GetPrintAreaHor( SCTAB nTab, SCROW nStartRow, SCROW nEndRow, diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 58f834f..c160b68 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -940,19 +940,6 @@ bool ScDocument::GetTableArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow ) cons return false; } -void ScDocument::GetFormattedAndUsedArea( SCTAB nTab, SCCOL rEndCol, SCROW rEndRow ) const -{ -if (VALIDTAB(nTab) nTab static_castSCTAB (maTabs.size())) -if (maTabs[nTab]) -{ -maTabs[nTab]-GetPrintArea( rEndCol, rEndRow, true, true ); -return; -} - -rEndCol = 0; -rEndRow = 0; -} - bool ScDocument::ShrinkToDataArea(SCTAB nTab, SCCOL rStartCol, SCROW rStartRow, SCCOL rEndCol, SCROW rEndRow) const { if (!ValidTab(nTab) || nTab = static_castSCTAB (maTabs.size()) || !maTabs[nTab]) @@ -3266,12 +3253,6 @@ void ScDocument::InitializeNoteCaptions( SCTAB nTab, bool bForced ) maTabs[ nTab ]-InitializeNoteCaptions( bForced ); } -void ScDocument::InitializeAllNoteCaptions( bool bForced ) -{ -for( SCTAB nTab = 0; nTab static_castSCTAB(maTabs.size()); ++nTab ) -InitializeNoteCaptions( nTab, bForced ); -} - void ScDocument::SetDirty() { bool bOldAutoCalc = GetAutoCalc(); diff --git a/unusedcode.easy b/unusedcode.easy index 4681351..0a25bec 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -11,8 +11,6 @@ ScCompressedArrayint, unsigned short::Remove(int, unsigned long) ScCompressedArrayint, unsigned short::ScCompressedArray(int, unsigned short const, unsigned long) ScCompressedArrayint, unsigned short::ScCompressedArray(int, unsigned short const*, unsigned long) ScCompressedArrayint, unsigned short::SetValue(int, unsigned short const) -ScDocument::GetFormattedAndUsedArea(short, short, int) const -ScDocument::InitializeAllNoteCaptions(bool) ScTabView::HideCursor() ScVbaFormatooo::vba::excel::XRange::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const) ScVbaFormatooo::vba::excel::XStyle::getAddIndent() ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
sc/inc/dpobject.hxx |1 - sc/source/core/data/dpobject.cxx | 12 unusedcode.easy |1 - 3 files changed, 14 deletions(-) New commits: commit 81647009acd50ba057ccdae8e8fe09f8a4335e28 Author: Javier Catala j_cat...@yahoo.com Date: Thu Apr 26 11:23:47 2012 +0200 Remove unused method ScDPObject::HasGroups diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 4f97b40..64525fd 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -138,7 +138,6 @@ public: voidInvalidateData(); void ClearTableData(); void ReloadGroupTableData(); -bool HasGroups() const; voidOutput( const ScAddress rPos ); ScRange GetNewOutputRange( bool rOverflow ); diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 2a431da..a3ae9ab 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -585,18 +585,6 @@ void ScDPObject::ReloadGroupTableData() bSettingsChanged = true; } -bool ScDPObject::HasGroups() const -{ -if (!pSaveData) -return false; - -const ScDPDimensionSaveData* pDimData = pSaveData-GetExistingDimensionData(); -if (!pDimData) -return false; - -return pDimData-HasGroupDimensions(); -} - void ScDPObject::ClearSource() { Reference XComponent xObjectComp( xSource, UNO_QUERY ); diff --git a/unusedcode.easy b/unusedcode.easy index f2ca669..3bc7388 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -51,7 +51,6 @@ 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 ScDPLabelData::ScDPLabelData(rtl::OUString const, short, bool) -ScDPObject::HasGroups() const ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short) ScHTMLColOffset::Insert(unsigned long const, unsigned short) ScHTMLColOffset::Insert(unsigned long const*, unsigned short) ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
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
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
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
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
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
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,