Removed unused commented-out code

This commit is contained in:
Tristan B. Velloza Kildaire 2022-10-01 20:58:34 +02:00
parent 69572ff02c
commit 81f168e154
1 changed files with 0 additions and 103 deletions

View File

@ -1352,109 +1352,6 @@ public class DNodeGenerator
generalPass(clazz, new Context(clazz, InitScope.STATIC));
// /**
// * Get the Entities
// */
// Entity[] entities;
// foreach(Statement statement; clazz.getStatements())
// {
// if(!(statement is null) && cast(Entity)statement)
// {
// entities ~= cast(Entity)statement;
// }
// }
// /**
// * Process all static members
// *
// * TODO: Non-Entities later
// */
// foreach(Entity entity; entities)
// {
// if(entity.getModifierType() == InitScope.STATIC)
// {
// /**
// * Variable declarations
// */
// if(cast(Variable)entity)
// {
// /* Get the Variable and information */
// Variable variable = cast(Variable)entity;
// Type variableType = tc.getType(clazz, variable.getType());
// gprintln(variable.getType());
// assert(variableType); /* TODO: Handle invalid variable type */
// DNode variableDNode = poolT!(StaticVariableDeclaration, Variable)(variable);
// /* Basic type */
// if(cast(Primitive)variableType)
// {
// /* Do nothing */
// }
// /* Class-type */
// else if(cast(Clazz)variableType)
// {
// /* If the class type is THIS class */
// if(variableType == clazz)
// {
// /* Do nothing */
// }
// /* If it is another type */
// else
// {
// /* Get the static class dependency */
// ClassStaticNode classDependency = classPassStatic(cast(Clazz)variableType);
// /* Make this variable declaration depend on static initalization of the class */
// variableDNode.needs(classDependency);
// }
// }
// /* Struct-type */
// else if(cast(Struct)variableType)
// {
// }
// /* Anything else */
// else
// {
// /* This should never happen */
// assert(false);
// }
// /* Set this variable as a dependency of this module */
// classDNode.needs(variableDNode);
// /* Set as visited */
// variableDNode.markVisited();
// /* If there is an assignment attached to this */
// if(variable.getAssignment())
// {
// /* (TODO) Process the assignment */
// /**
// * WARNING I COPIED THIS FROM MODULE INIT AS A TEST I DONT
// * KNOW FOR SURE IF IT WILL WORK
// *
// * !!!!!!!!!!!!!!!!!!!!!!!!
// */
// VariableAssignment varAssign = variable.getAssignment();
// DNode expression = expressionPass(varAssign.getExpression(), new Context(clazz, InitScope.STATIC));
// VariableAssignmentNode varAssignNode = new VariableAssignmentNode(this, varAssign);
// varAssignNode.needs(expression);
// variableDNode.needs(varAssignNode);
// }
// }
// }
// }
return classDNode;
}