diff options
-rw-r--r-- | sc/inc/refdata.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/tool/refdata.cxx | 24 |
2 files changed, 0 insertions, 27 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index 259b63f0310f..848bbd608e07 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -89,7 +89,6 @@ struct SC_DLLPUBLIC ScSingleRefData SCTAB GetTab() const; void CalcRelFromAbs( const ScAddress& rPos ); - void CalcAbsIfRel( const ScAddress& rPos ); bool operator==( const ScSingleRefData& ) const; bool operator!=( const ScSingleRefData& ) const; @@ -161,8 +160,6 @@ struct ScComplexRefData } inline void CalcRelFromAbs( const ScAddress& rPos ) { Ref1.CalcRelFromAbs( rPos ); Ref2.CalcRelFromAbs( rPos ); } - inline void CalcAbsIfRel( const ScAddress& rPos ) - { Ref1.CalcAbsIfRel( rPos ); Ref2.CalcAbsIfRel( rPos ); } inline bool IsDeleted() const { return Ref1.IsDeleted() || Ref2.IsDeleted(); } inline bool Valid() const diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx index 2cb910599790..3a7e2b006ba8 100644 --- a/sc/source/core/tool/refdata.cxx +++ b/sc/source/core/tool/refdata.cxx @@ -120,30 +120,6 @@ SCTAB ScSingleRefData::GetTab() const return Flags.bTabRel ? nRelTab : nTab; } -void ScSingleRefData::CalcAbsIfRel( const ScAddress& rPos ) -{ - if ( Flags.bColRel ) - { - nCol = nRelCol + rPos.Col(); - if ( !ValidCol( nCol ) ) - Flags.bColDeleted = sal_True; - } - if ( Flags.bRowRel ) - { - nRow = nRelRow + rPos.Row(); - if ( !ValidRow( nRow ) ) - Flags.bRowDeleted = sal_True; - } - if ( Flags.bTabRel ) - { - nTab = nRelTab + rPos.Tab(); - if ( !ValidTab( nTab ) ) - Flags.bTabDeleted = sal_True; - } -} - - - bool ScSingleRefData::operator==( const ScSingleRefData& r ) const { return mnFlagValue == r.mnFlagValue && |