Kaydet (Commit) 4ec43284 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Remove CalcAbsIfRel() since nobody uses this anymore.

Change-Id: Ie52e83b9e476b822e878488e231d60d0ce196cf4
üst 194e9f9b
......@@ -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
......
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment