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 /sc/source/core/tool/rangenam.cxx | |
parent | 3b81452e25cd119a0fd24402d14d350e5545e348 (diff) |
unusedcode.easy: remove some unused code
Change-Id: I0b9abff3978c03c87aa0d49dbfb531ec4f38d698
Diffstat (limited to 'sc/source/core/tool/rangenam.cxx')
-rw-r--r-- | sc/source/core/tool/rangenam.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
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 |