aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/evaluator.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/boot/evaluator.cc b/boot/evaluator.cc
index a96d8ab..4eed818 100644
--- a/boot/evaluator.cc
+++ b/boot/evaluator.cc
@@ -299,14 +299,7 @@ namespace elna::boot
{
return constant->value;
}
- const std::shared_ptr<variable_info> variable = symbol->is_variable();
-
- if (variable == nullptr
- || resolve_aliases(variable->symbol).get<constant_type>() == nullptr)
- {
- return std::nullopt;
- }
- return variable->value;
+ return std::nullopt;
}
std::optional<constant_value> evaluator::evaluate_array_access(array_access_expression& subject)