Removed unused functions and imports

This commit is contained in:
Apoorva Ranade
2021-05-07 21:28:07 +05:30
parent 10fe9dbfb6
commit be2822416c
+1 -13
View File
@@ -1,9 +1,7 @@
package chocopy.pa3;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import chocopy.common.analysis.*;
@@ -219,21 +217,11 @@ public class CodeGenImpl extends CodeGenBase
{ //handle used to free the register
registerAvilMap[handle] = true;
}
private int getParamLocationOffset(int index, int paramSize)
{
return (paramSize - index - 1) * wordSize;
}
private int getLocalVarLocationOffset(int index, int paramSize) {
return - (index - paramSize + 1) * wordSize;
}
private int getStaticLinkOffset(int paramSize)
{
return paramSize * wordSize;
}
/**
* An analyzer for the function described by FUNCINFO0, which is null for the
* top level.