diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 15:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-20 08:13:51 +0000 |
commit | 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c (patch) | |
tree | b2a0a83933064b7a22db0e27c0a3d8b7339053de /idlc | |
parent | 3179e8f7e6ce550bbe766ed730e68b0374944dd5 (diff) |
loplugin:unusedmethods
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e
Reviewed-on: https://gerrit.libreoffice.org/21603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/inc/idlc/astexpression.hxx | 1 | ||||
-rw-r--r-- | idlc/source/astexpression.cxx | 52 |
2 files changed, 0 insertions, 53 deletions
diff --git a/idlc/inc/idlc/astexpression.hxx b/idlc/inc/idlc/astexpression.hxx index 83fa6d70dd6d..4e51e8bfb51a 100644 --- a/idlc/inc/idlc/astexpression.hxx +++ b/idlc/inc/idlc/astexpression.hxx @@ -115,7 +115,6 @@ public: void evaluate(); // Compare to AstExpressions - bool operator==(AstExpression *pExpr); bool compare(AstExpression *pExpr); OString toString(); diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index cb5a044a27f1..2ffd67fd3a27 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -758,58 +758,6 @@ bool AstExpression::coerce(ExprType t) return m_exprValue != nullptr; } -bool AstExpression::operator==(AstExpression *pExpr) -{ - bool bRet = false; - if (m_combOperator != pExpr->getCombOperator()) - return bRet; - evaluate(); - pExpr->evaluate(); - if (m_exprValue == nullptr || pExpr->getExprValue() == nullptr) - return bRet; - if (m_exprValue->et != pExpr->getExprValue()->et) - return bRet; - switch (m_exprValue->et) - { - case ET_short: - bRet = m_exprValue->u.sval == pExpr->getExprValue()->u.sval; - break; - case ET_ushort: - bRet = m_exprValue->u.usval == pExpr->getExprValue()->u.usval; - break; - case ET_long: - bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval; - break; - case ET_ulong: - bRet = m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval; - break; - case ET_hyper: - bRet = m_exprValue->u.hval == pExpr->getExprValue()->u.hval; - break; - case ET_uhyper: - bRet = m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval; - break; - case ET_float: - bRet = m_exprValue->u.fval == pExpr->getExprValue()->u.fval; - break; - case ET_double: - bRet = m_exprValue->u.dval == pExpr->getExprValue()->u.dval; - break; - case ET_byte: - bRet = m_exprValue->u.byval == pExpr->getExprValue()->u.byval; - break; - case ET_boolean: - bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval; - break; - default: - OSL_ASSERT(false); - bRet = false; - break; - } - - return bRet; -} - bool AstExpression::compare(AstExpression *pExpr) { bool bRet = false; |