Shader/MultiStatement: Remove sectionName

This commit is contained in:
Jérôme Leclercq
2022-03-12 16:23:13 +01:00
parent b595a5d4ec
commit 5a9a55ee7e
8 changed files with 48 additions and 20 deletions

View File

@@ -236,7 +236,6 @@ namespace Nz::ShaderAst
StatementPtr AstCloner::Clone(MultiStatement& node)
{
auto clone = std::make_unique<MultiStatement>();
clone->sectionName = node.sectionName;
clone->statements.reserve(node.statements.size());
for (auto& statement : node.statements)
clone->statements.push_back(CloneStatement(statement));

View File

@@ -347,8 +347,6 @@ namespace Nz::ShaderAst
void AstSerializerBase::Serialize(MultiStatement& node)
{
Value(node.sectionName);
Container(node.statements);
for (auto& statement : node.statements)
Node(statement);

View File

@@ -1536,7 +1536,6 @@ namespace Nz::ShaderAst
StatementPtr SanitizeVisitor::Clone(MultiStatement& node)
{
auto clone = std::make_unique<MultiStatement>();
clone->sectionName = node.sectionName;
clone->statements.reserve(node.statements.size());
std::vector<StatementPtr>* previousList = m_context->currentStatementList;