Dropping now unused head variable names.

This commit is contained in:
Patrick Lühne 2017-05-30 16:40:56 +02:00
parent 8214d7837a
commit 59fbc473df
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -61,10 +61,7 @@ struct StatementVisitor
for (size_t i = 0; i < ruleContext.headTerms.size(); i++) for (size_t i = 0; i < ruleContext.headTerms.size(); i++)
{ {
// TODO: drop name auto variableDeclaration = std::make_unique<ast::VariableDeclaration>(ast::VariableDeclaration::Type::Head);
auto variableName = "#" + std::string(HeadVariablePrefix) + std::to_string(ruleContext.freeVariables.size() + 1);
auto variableDeclaration = std::make_unique<ast::VariableDeclaration>(ast::VariableDeclaration::Type::Head, std::move(variableName));
ruleContext.freeVariables.emplace_back(std::move(variableDeclaration)); ruleContext.freeVariables.emplace_back(std::move(variableDeclaration));
} }