remove removeVariable
This commit is contained in:
@@ -241,12 +241,6 @@ PIEvaluatorTypes::Variable PIEvaluatorContent::customVariable(int index) {
|
||||
}
|
||||
|
||||
|
||||
void PIEvaluatorContent::removeVariable(int index) {
|
||||
if (index < 0 || index >= variables.size_s()) return;
|
||||
variables.remove(index);
|
||||
}
|
||||
|
||||
|
||||
void PIEvaluatorContent::clearCustomVariables() {
|
||||
variables.clear();
|
||||
addVariable(PIStringAscii("i" ), complexd_i);
|
||||
|
||||
@@ -116,8 +116,6 @@ public:
|
||||
bool setVariableValue(const PIString & var_name, const complexd & new_value) {return setVariableValue(findVariable(var_name), new_value);}
|
||||
bool setVariableName(int index, const PIString & new_name);
|
||||
bool setVariableName(const PIString & var_name, const PIString & new_name) {return setVariableName(findVariable(var_name), new_name);}
|
||||
void removeVariable(int index);
|
||||
void removeVariable(const PIString & var_name) {removeVariable(findVariable(var_name));}
|
||||
void clearCustomVariables();
|
||||
PIEvaluatorTypes::BaseFunctions getBaseFunction(const PIString & name);
|
||||
|
||||
@@ -163,9 +161,6 @@ public:
|
||||
//! Evaluate last successfully checked with function \a check() expression and returns result
|
||||
complexd evaluate();
|
||||
|
||||
//! Remove variable with name "name"
|
||||
void removeVariable(const PIString & name) {content.removeVariable(name);}
|
||||
|
||||
//! Remove all manually added variables
|
||||
void clearCustomVariables() {content.clearCustomVariables();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user