summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-28 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-29 07:28:57 +0100
commita566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 (patch)
tree13273efcf8aa69ce39a1860dc3d111c071e6a7b3 /basic
parent411260d836e7bf6c693b9b7d16af1b36184133af (diff)
loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1 Reviewed-on: https://gerrit.libreoffice.org/45386 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/exprnode.cxx12
-rw-r--r--basic/source/inc/expr.hxx1
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; }