mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
[muparser] Remove ParserCallback m_bAllowOpti flag
muParser can no longer optimize, so this is unused.
This commit is contained in:
parent
e728bf45de
commit
886341fdea
2 changed files with 1 additions and 11 deletions
|
@ -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
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue