starmath: Drop unnecessary definitions
Change-Id: I709e612fd03dfa50d6f7bcfa4545fcd23f0ebe60
Reviewed-on: https://gerrit.libreoffice.org/26654
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 7d9b0df..fa79f55 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -127,9 +127,12 @@ public:
virtual ~SmNode();
virtual bool IsVisible() const;
/**
* Returns true if this is a instance of SmVisibleNode's subclass, false otherwise.
*/
virtual bool IsVisible() const = 0;
virtual sal_uInt16 GetNumSubNodes() const;
virtual sal_uInt16 GetNumSubNodes() const = 0;
virtual SmNode * GetSubNode(sal_uInt16 nIndex) = 0;
const SmNode * GetSubNode(sal_uInt16 nIndex) const
{
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index eb3224a..f378e4d 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -76,18 +76,6 @@ SmNode::~SmNode()
}
bool SmNode::IsVisible() const
{
return false;
}
sal_uInt16 SmNode::GetNumSubNodes() const
{
return 0;
}
const SmNode * SmNode::GetLeftMost() const
// returns leftmost node of current subtree.
//! (this assumes the one with index 0 is always the leftmost subnode