[muparser] Remove the optimizer

The optimizer adds a fair amount of complexity in muparser with no
benefit to fish, since fish is not going to use complicated expressions
or cache parsed expressions.
This commit is contained in:
ridiculousfish
2017-11-22 10:48:09 -08:00
parent 85334432ed
commit a7f6105497
6 changed files with 6 additions and 159 deletions

View File

@@ -109,7 +109,6 @@ class ParserBase {
void SetThousandsSep(char_type cThousandsSep = 0);
void ResetLocale();
void EnableOptimizer(bool a_bIsOn = true);
void EnableBuiltInOprt(bool a_bIsOn = true);
bool HasBuiltInOprt() const;

View File

@@ -95,8 +95,6 @@ class ParserByteCode {
/** \brief The actual rpn storage. */
rpn_type m_vRPN;
bool m_bEnableOptimizer;
void ConstantFolding(ECmdCode a_Oprt);
public:
@@ -113,8 +111,6 @@ class ParserByteCode {
void AddFun(generic_fun_type a_pFun, int a_iArgc);
void AddStrFun(generic_fun_type a_pFun, int a_iArgc, int a_iIdx);
void EnableOptimizer(bool bStat);
void Finalize();
void clear();
std::size_t GetMaxStackSize() const;