mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
[muparser] Remove ParserCallback m_bAllowOpti flag
muParser can no longer optimize, so this is unused.
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user