macro processor: remove unnecessary function

issue#70
Houtan Bastani 2019-06-25 12:12:34 +02:00
parent f2c93d377f
commit b041cb4fba
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 0 additions and 7 deletions

View File

@ -565,12 +565,7 @@ Array::eval()
increment = nullptr;
range2 = nullptr;
}
return evalArray();
}
BaseTypePtr
Array::evalArray()
{
vector<ExpressionPtr> retval;
for (const auto & it : arr)
retval.emplace_back(it->eval());

View File

@ -346,8 +346,6 @@ namespace macro
string to_string() const noexcept override;
void print(ostream &output, bool matlab_output = false) const noexcept override;
BaseTypePtr eval() override;
private:
BaseTypePtr evalArray();
public:
inline size_t size() const { return arr.size(); }
inline vector<ExpressionPtr> getValue() const { return arr; }