Skip to content

Commit

Permalink
depth was always 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 29, 2024
1 parent b55cebf commit d089ff6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/org/rascalmpl/exceptions/RascalStackOverflowError.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
package org.rascalmpl.exceptions;

import org.rascalmpl.ast.AbstractAST;
import org.rascalmpl.interpreter.IEvaluatorContext;
import org.rascalmpl.interpreter.env.Environment;

/**
Expand All @@ -26,12 +25,10 @@ public class RascalStackOverflowError extends RuntimeException {
private static final long serialVersionUID = -3947588548271683963L;
private final Environment deepestEnvironment;
private final AbstractAST currentAST;
private final int depth;

public RascalStackOverflowError(AbstractAST current, Environment deepest, int depth) {
public RascalStackOverflowError(AbstractAST current, Environment deepest) {
this.deepestEnvironment = deepest;
this.currentAST = current;
this.depth = depth;
}

public Throw makeThrow() {
Expand All @@ -49,8 +46,4 @@ public Throw makeThrow() {
public Environment getEnvironment() {
return deepestEnvironment;
}

public int getDepth() {
return depth;
}
}

0 comments on commit d089ff6

Please sign in to comment.