starmath: Remove unused definition
Change-Id: I46674e606ad7ef586597c926a21dd745ee762011
Reviewed-on: https://gerrit.libreoffice.org/26634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index f6f684d..7d9b0df 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -130,7 +130,7 @@ public:
virtual bool IsVisible() const;
virtual sal_uInt16 GetNumSubNodes() const;
virtual SmNode * GetSubNode(sal_uInt16 nIndex);
virtual SmNode * GetSubNode(sal_uInt16 nIndex) = 0;
const SmNode * GetSubNode(sal_uInt16 nIndex) const
{
return const_cast<SmNode *>(this)->GetSubNode(nIndex);
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index ed06440..eb3224a 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -88,12 +88,6 @@ sal_uInt16 SmNode::GetNumSubNodes() const
}
SmNode * SmNode::GetSubNode(sal_uInt16 /*nIndex*/)
{
return nullptr;
}
const SmNode * SmNode::GetLeftMost() const
// returns leftmost node of current subtree.
//! (this assumes the one with index 0 is always the leftmost subnode