mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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();
|
||||||
ParserCallback(const ParserCallback& a_Fun);
|
ParserCallback(const ParserCallback& a_Fun);
|
||||||
|
|
||||||
bool IsOptimizable() const;
|
|
||||||
void* GetAddr() const;
|
void* GetAddr() const;
|
||||||
ECmdCode GetCode() const;
|
ECmdCode GetCode() const;
|
||||||
ETypeCode GetType() const;
|
ETypeCode GetType() const;
|
||||||
|
@ -82,7 +81,6 @@ class ParserCallback final {
|
||||||
EOprtAssociativity m_eOprtAsct; ///< Operator associativity; Valid only for binary operators
|
EOprtAssociativity m_eOprtAsct; ///< Operator associativity; Valid only for binary operators
|
||||||
ECmdCode m_iCode;
|
ECmdCode m_iCode;
|
||||||
ETypeCode m_iType;
|
ETypeCode m_iType;
|
||||||
bool m_bAllowOpti; ///< Flag indication optimizeability
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
|
@ -128,21 +128,13 @@ ParserCallback::ParserCallback()
|
||||||
m_iPri(-1),
|
m_iPri(-1),
|
||||||
m_eOprtAsct(oaNONE),
|
m_eOprtAsct(oaNONE),
|
||||||
m_iCode(cmUNKNOWN),
|
m_iCode(cmUNKNOWN),
|
||||||
m_iType(tpVOID),
|
m_iType(tpVOID) {}
|
||||||
m_bAllowOpti(0) {}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
/** \brief Copy constructor.
|
/** \brief Copy constructor.
|
||||||
*/
|
*/
|
||||||
ParserCallback::ParserCallback(const ParserCallback& ref) = default;
|
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.
|
/** \brief Get the callback address for the parser function.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue