[muparser] Remove ParserCallback m_bAllowOpti flag

muParser can no longer optimize, so this is unused.
This commit is contained in:
ridiculousfish 2017-12-18 11:46:29 -08:00
parent e728bf45de
commit 886341fdea
2 changed files with 1 additions and 11 deletions

View file

@ -61,7 +61,6 @@ class ParserCallback final {
ParserCallback();
ParserCallback(const ParserCallback& a_Fun);
bool IsOptimizable() const;
void* GetAddr() const;
ECmdCode GetCode() const;
ETypeCode GetType() const;
@ -82,7 +81,6 @@ class ParserCallback final {
EOprtAssociativity m_eOprtAsct; ///< Operator associativity; Valid only for binary operators
ECmdCode m_iCode;
ETypeCode m_iType;
bool m_bAllowOpti; ///< Flag indication optimizeability
};
//------------------------------------------------------------------------------

View file

@ -128,21 +128,13 @@ ParserCallback::ParserCallback()
m_iPri(-1),
m_eOprtAsct(oaNONE),
m_iCode(cmUNKNOWN),
m_iType(tpVOID),
m_bAllowOpti(0) {}
m_iType(tpVOID) {}
//---------------------------------------------------------------------------
/** \brief Copy constructor.
*/
ParserCallback::ParserCallback(const ParserCallback& ref) = default;
//---------------------------------------------------------------------------
/** \brief Return tru if the function is conservative.
Conservative functions return always the same result for the same argument.
*/
bool ParserCallback::IsOptimizable() const { return m_bAllowOpti; }
//---------------------------------------------------------------------------
/** \brief Get the callback address for the parser function.