diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-12-19 15:44:32 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-12-19 18:33:35 +0200 |
commit | 9adb00cf4df13e6f251c0ff5f71bce5ca2c7525d (patch) | |
tree | 94140c213f84fcfd6e4162c84c01dfd744521b20 /sc | |
parent | e155e05ab70f1744d296dbee8c61564a5b7d346c (diff) |
The value of the nRefs field is not used anywhere
Change-Id: I9116611d04846af7f00cb366e9174fd99e741d5c
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 3 | ||||
-rw-r--r-- | sc/source/core/tool/token.cxx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index fbf8fb99937c..0c273b3fe5f3 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4000,8 +4000,7 @@ bool ScCompiler::HandleExternalReference(const FormulaToken& _aToken) { case svExternalSingleRef: case svExternalDoubleRef: - pArr->IncrementRefs(); - break; + break; case svExternalName: { ScExternalRefManager* pRefMgr = pDoc->GetExternalRefManager(); diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index f0ba930da443..e52d5817bef2 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1574,7 +1574,6 @@ ScTokenArray* ScTokenArray::Clone() const ScTokenArray* p = new ScTokenArray(); p->nLen = nLen; p->nRPN = nRPN; - p->nRefs = nRefs; p->nMode = nMode; p->nError = nError; p->bHyperLink = bHyperLink; @@ -1832,7 +1831,6 @@ FormulaToken* ScTokenArray::MergeRangeReference( const ScAddress & rPos ) p3->DecRef(); nLen -= 2; pCode[ nLen-1 ] = p.get(); - nRefs--; } } return pCode[ nLen-1 ]; |