diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-06-03 22:16:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-06-03 23:15:02 +0200 |
commit | df6e819a8f76f927bd7a568a95a535299e795a06 (patch) | |
tree | a4a7ef273ad24288d5481d2400d1344db5b540a5 /starmath | |
parent | 698982c10eec667e4861b1ec72ad871b4368f471 (diff) |
Remove unused SmStructureNode::SetSubNodesBinMo with plain pointers (starmath)
and keep the remaining one which uses unique_ptr
Change-Id: I0e4e4aff5c202897a27dfef97750c14c3c5736bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152581
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/node.hxx | 10 | ||||
-rw-r--r-- | starmath/source/node.cxx | 27 |
2 files changed, 0 insertions, 37 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index f162b83aa754..e0b597306509 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -544,16 +544,6 @@ public: std::unique_ptr<SmNode> pThird = nullptr); /** - * Sets subnodes, used for operators. - * The data is reordered so the items are correctly ordered. - * @param pFirst - * @param pSecond - * @param pThird - * @return - */ - void SetSubNodesBinMo(SmNode* pFirst, SmNode* pSecond, SmNode* pThird); - - /** * Sets subnodes. * @param rNodeArray * @return diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 5beab34c731d..7a9d42bd4fe1 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -416,33 +416,6 @@ void SmStructureNode::SetSubNodesBinMo(std::unique_ptr<SmNode> pFirst, std::uniq ClaimPaternity(); } -void SmStructureNode::SetSubNodesBinMo(SmNode* pFirst, SmNode* pSecond, SmNode* pThird) -{ - if(GetType()==SmNodeType::BinDiagonal) - { - size_t nSize = pSecond ? 3 : (pThird ? 2 : (pFirst ? 1 : 0)); - maSubNodes.resize( nSize ); - if (pFirst) - maSubNodes[0] = pFirst; - if (pSecond) - maSubNodes[2] = pSecond; - if (pThird) - maSubNodes[1] = pThird; - } - else - { - size_t nSize = pThird ? 3 : (pSecond ? 2 : (pFirst ? 1 : 0)); - maSubNodes.resize( nSize ); - if (pFirst) - maSubNodes[0] = pFirst; - if (pSecond) - maSubNodes[1] = pSecond; - if (pThird) - maSubNodes[2] = pThird; - } - ClaimPaternity(); -} - void SmStructureNode::SetSubNodes(SmNodeArray&& rNodeArray) { maSubNodes = std::move(rNodeArray); |