From a566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Nov 2017 10:10:40 +0200 Subject: loplugin:unusedmethods Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1 Reviewed-on: https://gerrit.libreoffice.org/45386 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/comp/exprnode.cxx | 12 ------------ basic/source/inc/expr.hxx | 1 - 2 files changed, 13 deletions(-) (limited to 'basic') 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; } -- cgit