Get rid of the useless list

This commit is contained in:
de4dot 2011-10-20 02:45:55 +02:00
parent c8500b4f33
commit 865cfb9536

View File

@ -95,9 +95,8 @@ namespace de4dot.blocks {
if (locals.Count == 0)
return 0;
var allBlocks = new List<Block>(methodBlocks.getAllBlocks());
var usedLocals = new Dictionary<VariableDefinition, List<LocalVariableInfo>>();
foreach (var block in allBlocks) {
foreach (var block in methodBlocks.getAllBlocks()) {
for (int i = 0; i < block.Instructions.Count; i++) {
var instr = block.Instructions[i];
VariableDefinition local;