diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-06-05 17:47:17 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-06-05 17:48:18 +0200 |
commit | eb4001a2659ff1fcc941d8c0b439da65408183be (patch) | |
tree | 644a9ea2e2c4b71a5fbd32721f3fddfc46ef4b9d | |
parent | 3b81452e25cd119a0fd24402d14d350e5545e348 (diff) |
unusedcode.easy: remove some unused code
Change-Id: I0b9abff3978c03c87aa0d49dbfb531ec4f38d698
-rw-r--r-- | sc/inc/chartlis.hxx | 1 | ||||
-rw-r--r-- | sc/inc/pivot.hxx | 1 | ||||
-rw-r--r-- | sc/inc/rangenam.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/pivot2.cxx | 13 | ||||
-rw-r--r-- | sc/source/core/tool/chartlis.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/tool/rangenam.cxx | 32 | ||||
-rwxr-xr-x | unusedcode.easy | 4 |
7 files changed, 0 insertions, 61 deletions
diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index 8ca27603b527..2dff0c2dfc98 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -95,7 +95,6 @@ public: ~ScChartListener(); const rtl::OUString& GetName() const; - void SetName(const rtl::OUString& rName); void SetUno( const com::sun::star::uno::Reference< com::sun::star::chart::XChartDataChangeEventListener >& rListener, const com::sun::star::uno::Reference< com::sun::star::chart::XChartData >& rSource ); diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx index 27f3dbc38c2a..34fc22a4413f 100644 --- a/sc/inc/pivot.hxx +++ b/sc/inc/pivot.hxx @@ -163,7 +163,6 @@ struct ScDPLabelData ::com::sun::star::sheet::DataPilotFieldAutoShowInfo maShowInfo; /// AutoShow info. ScDPLabelData(); - explicit ScDPLabelData(const rtl::OUString& rName, SCCOL nCol, bool bIsValue); /** * return the name that should be displayed in the dp dialogs i.e. when diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index dfb7d9e5bca2..4e9606316ebf 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -86,8 +86,6 @@ private: SCROW mnMaxRow; SCCOL mnMaxCol; - ScRangeData( sal_uInt16 nIndex ); - void CompileRangeData( const String& rSymbol, bool bSetError ); public: diff --git a/sc/source/core/data/pivot2.cxx b/sc/source/core/data/pivot2.cxx index 29920236b961..1b60ae02cb92 100644 --- a/sc/source/core/data/pivot2.cxx +++ b/sc/source/core/data/pivot2.cxx @@ -103,19 +103,6 @@ ScDPLabelData::ScDPLabelData() : { } -ScDPLabelData::ScDPLabelData(const rtl::OUString& rName, SCCOL nCol, bool bIsValue) : - maName( rName ), - mnCol( nCol ), - mnOriginalDim(-1), - mnFuncMask( PIVOT_FUNC_NONE ), - mnUsedHier( 0 ), - mnFlags( 0 ), - mbShowAll( false ), - mbIsValue( bIsValue ), - mbDataLayout(false) -{ -} - OUString ScDPLabelData::getDisplayName() const { if (!maLayoutName.isEmpty()) diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx index d49fdebc089b..d749f634fffc 100644 --- a/sc/source/core/tool/chartlis.cxx +++ b/sc/source/core/tool/chartlis.cxx @@ -26,9 +26,6 @@ * ************************************************************************/ - - - #include <vcl/svapp.hxx> #include "chartlis.hxx" @@ -200,11 +197,6 @@ const rtl::OUString& ScChartListener::GetName() const return maName; } -void ScChartListener::SetName(const rtl::OUString& rName) -{ - maName = rName; -} - void ScChartListener::SetUno( const uno::Reference< chart::XChartDataChangeEventListener >& rListener, const uno::Reference< chart::XChartData >& rSource ) diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx index e671585ad91f..f6c3af483220 100644 --- a/sc/source/core/tool/rangenam.cxx +++ b/sc/source/core/tool/rangenam.cxx @@ -55,12 +55,6 @@ using ::rtl::OUString; // ScRangeData //======================================================================== -// Interner ctor fuer das Suchen nach einem Index - -ScRangeData::ScRangeData( sal_uInt16 n ) - : pCode( NULL ), nIndex( n ), bModified( false ), mnMaxRow(-1), mnMaxCol(-1) -{} - ScRangeData::ScRangeData( ScDocument* pDok, const rtl::OUString& rName, const String& rSymbol, @@ -596,32 +590,6 @@ sal_uInt32 ScRangeData::GetUnoType() const return nUnoType; } -void ScRangeData::ReplaceRangeNamesInUse( const IndexMap& rMap ) -{ - bool bCompile = false; - for ( FormulaToken* p = pCode->First(); p; p = pCode->Next() ) - { - if ( p->GetOpCode() == ocName ) - { - const sal_uInt16 nOldIndex = p->GetIndex(); - IndexMap::const_iterator itr = rMap.find(nOldIndex); - const sal_uInt16 nNewIndex = itr == rMap.end() ? nOldIndex : itr->second; - if ( nOldIndex != nNewIndex ) - { - p->SetIndex( nNewIndex ); - bCompile = true; - } - } - } - if ( bCompile ) - { - ScCompiler aComp( pDoc, aPos, *pCode); - aComp.SetGrammar(pDoc->GetGrammar()); - aComp.CompileTokenArray(); - } -} - - void ScRangeData::ValidateTabRefs() { // try to make sure all relative references and the reference position diff --git a/unusedcode.easy b/unusedcode.easy index 11dec4a8d7c7..4458f6268484 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -28,7 +28,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) -ScChartListener::SetName(rtl::OUString const&) ScCompressedArray<int, unsigned char>::GetEntryCount() const ScCompressedArray<int, unsigned short>::CopyFrom(ScCompressedArray<int, unsigned short> const&, int, int, long) ScCompressedArray<int, unsigned short>::GetEntryCount() const @@ -40,7 +39,6 @@ ScCompressedArray<int, unsigned short>::ScCompressedArray(int, unsigned short co ScCompressedArray<int, unsigned short>::SetValue(int, unsigned short const&) ScCsvControl::ScCsvControl(Window*, ScCsvLayoutData const&, long) ScDBCollection::AnonDBs::erase(boost::void_ptr_iterator<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<void**, std::__cxx1998::vector<void*, std::allocator<void*> > >, std::__debug::vector<void*, std::allocator<void*> > >, ScDBData>) -ScDPLabelData::ScDPLabelData(rtl::OUString const&, short, bool) ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short) ScHTMLColOffset::Insert(unsigned long const&, unsigned short&) ScHTMLColOffset::Insert(unsigned long const*, unsigned short) @@ -56,8 +54,6 @@ ScRTFColTwips::Remove(unsigned long const&, unsigned short) ScRTFColTwips_SAR::Replace(unsigned long const&, unsigned short) ScRTFColTwips_SAR::Replace(unsigned long const*, unsigned short, unsigned short) ScRTFColTwips_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned long const&, void*), void*) -ScRangeData::ReplaceRangeNamesInUse(std::__debug::map<unsigned short, unsigned short, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned short> > > const&) -ScRangeData::ScRangeData(unsigned short) ScSimpleRangeList::Range::contains(ScSimpleRangeList::Range const&) const ScTable::ReplaceRangeNamesInUse(short, int, short, int, std::__debug::map<unsigned short, unsigned short, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, unsigned short> > > const&) ScTypedStrData::GetValue() const |