summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-06-25 19:21:18 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-06-25 11:56:38 +0000
commit84bbe3a104e5ffca8a62c50b0fe6e2029764319a (patch)
treea02acc0d2d7d396c00751a15a3fdfec71ef86668
parent3fd21b123fb2338b9f1ed0b483a86ae878a6d769 (diff)
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>
-rw-r--r--starmath/inc/node.hxx7
-rw-r--r--starmath/source/node.cxx12
2 files changed, 5 insertions, 14 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 7d9b0df6f934..fa79f550f019 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 eb3224a05b30..f378e4dc5921 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