fix: remove unnecessary reference from core to compiler

This commit is contained in:
TopchetoEU 2024-11-23 20:04:19 +02:00
parent 45308e6d65
commit 50eb204da7
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -15,7 +15,6 @@ import java.util.stream.Collectors;
import me.topchetoeu.jscript.common.Instruction.BreakpointType; import me.topchetoeu.jscript.common.Instruction.BreakpointType;
import me.topchetoeu.jscript.common.parsing.Filename; import me.topchetoeu.jscript.common.parsing.Filename;
import me.topchetoeu.jscript.common.parsing.Location; import me.topchetoeu.jscript.common.parsing.Location;
import me.topchetoeu.jscript.compilation.scope.Scope;
public class FunctionMap { public class FunctionMap {
public static class FunctionMapBuilder { public static class FunctionMapBuilder {
@ -54,9 +53,6 @@ public class FunctionMap {
public FunctionMap build(String[] localNames, String[] captureNames) { public FunctionMap build(String[] localNames, String[] captureNames) {
return new FunctionMap(sourceMap, breakpoints, localNames, captureNames); return new FunctionMap(sourceMap, breakpoints, localNames, captureNames);
} }
public FunctionMap build(Scope scope) {
return new FunctionMap(sourceMap, breakpoints, new String[0], new String[0]);
}
public FunctionMap build() { public FunctionMap build() {
return new FunctionMap(sourceMap, breakpoints, new String[0], new String[0]); return new FunctionMap(sourceMap, breakpoints, new String[0], new String[0]);
} }