Skip to content

Commit

Permalink
Dependency
Browse files Browse the repository at this point in the history
- Removed unused `pathTrailDeps`
  • Loading branch information
deavmi committed May 11, 2024
1 parent cd9fb4a commit fff5f28
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions source/tlang/compiler/typecheck/dependency/core.d
Expand Up @@ -563,33 +563,6 @@ public class DNodeGenerator
return node;
}


/**
* Used for maintaining dependencies along a trail of `x.y.z`
*/
private DNode[][string] pathTrailDeps;
private void addToPathTrail(string finalEntityName, DNode dep)
{
bool found = false;
foreach(string entityName; pathTrailDeps.keys)
{
if(cmp(entityName, finalEntityName) == 0)
{
found = true;
break;
}
}

if(found == false)
{
pathTrailDeps[finalEntityName] = [];
}

pathTrailDeps[finalEntityName] ~= dep;

}


private DNode expressionPass(Expression exp, Context context)
{
ExpressionDNode dnode = poolT!(ExpressionDNode, Expression)(exp);
Expand Down

0 comments on commit fff5f28

Please sign in to comment.