summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-22 23:25:47 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-24 23:29:37 -0400
commit4ec43284e3a2f5ae43cc1cdef71f153560b0a1a8 (patch)
tree15f16ae08e158ec3901884dac5dc9be1e2626d71
parent194e9f9bae28bdf22a9ed4779c1656ee693f3302 (diff)
Remove CalcAbsIfRel() since nobody uses this anymore.
Change-Id: Ie52e83b9e476b822e878488e231d60d0ce196cf4
-rw-r--r--sc/inc/refdata.hxx3
-rw-r--r--sc/source/core/tool/refdata.cxx24
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 &&