Remove old test code

This commit is contained in:
Yoshi Askharoun
2025-09-27 03:08:35 -05:00
parent 97c6e7d1c2
commit 47e368ab24
2 changed files with 2 additions and 33 deletions
+1 -19
View File
@@ -56,25 +56,7 @@ public class ControlFlowAnalyzer
}
}
public void PushBlock(CodeBlock block)
{
BlockStack.Push(block);
return;
while (BlockStack.Count > 1)
{
var currentBlock = BlockStack.Pop();
var parentBlock = BlockStack.Peek();
if (currentBlock.EndOffset <= parentBlock.EndOffset)
{
BlockStack.Push(currentBlock);
break;
}
currentBlock.FinalizeBlock(parentBlock);
}
}
public void PushBlock(CodeBlock block) => BlockStack.Push(block);
public bool TryPeekBlockInfo<T>(out T info) where T : ICodeBlockInfo => TryPeekBlock(out _, out info);