diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/exprnode.cxx | 12 | ||||
-rw-r--r-- | basic/source/inc/expr.hxx | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/basic/source/comp/exprnode.cxx b/basic/source/comp/exprnode.cxx index a1ae40a4eacc..ffe7509fe31b 100644 --- a/basic/source/comp/exprnode.cxx +++ b/basic/source/comp/exprnode.cxx @@ -177,18 +177,6 @@ bool SbiExprNode::IsLvalue() return IsVariable(); } -// Identify of the depth of a tree - -short SbiExprNode::GetDepth() -{ - if( IsOperand() ) return 0; - else - { - return std::max(pLeft->GetDepth(), pRight->GetDepth()) + 1; - } -} - - // Adjustment of a tree: // 1. Constant Folding // 2. Type-Adjustment diff --git a/basic/source/inc/expr.hxx b/basic/source/inc/expr.hxx index c50489175ba3..cefad1957a25 100644 --- a/basic/source/inc/expr.hxx +++ b/basic/source/inc/expr.hxx @@ -136,7 +136,6 @@ public: SbiSymDef* GetVar(); SbiSymDef* GetRealVar(); // last variable in x.y.z SbiExprNode* GetRealNode(); // last node in x.y.z - short GetDepth(); // compute a tree's depth const OUString& GetString() { return aStrVal; } short GetNumber() { return (short)nVal; } SbiExprList* GetParameters() { return aVar.pPar; } |