[Libreoffice-commits] core.git: starmath/inc starmath/source

Takeshi Abe tabe at fixedpoint.jp
Sat Jun 25 11:57:02 UTC 2016


 starmath/inc/node.hxx    |    7 +++++--
 starmath/source/node.cxx |   12 ------------
 2 files changed, 5 insertions(+), 14 deletions(-)

New commits:
commit 84bbe3a104e5ffca8a62c50b0fe6e2029764319a
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Jun 25 19:21:18 2016 +0900

    starmath: Drop unnecessary definitions
    
    Change-Id: I709e612fd03dfa50d6f7bcfa4545fcd23f0ebe60
    Reviewed-on: https://gerrit.libreoffice.org/26654
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at 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


More information about the Libreoffice-commits mailing list