Skip to content

Commit

Permalink
removed dead method
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Apr 4, 2024
1 parent 08c3a02 commit ea79af8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/org/rascalmpl/ideservices/BasicIDEServices.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ public BasicIDEServices(PrintWriter stderr, IRascalMonitor monitor){
this.stderr = stderr;
this.monitor = monitor;

Check warning on line 42 in src/org/rascalmpl/ideservices/BasicIDEServices.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/ideservices/BasicIDEServices.java#L42

Added line #L42 was not covered by tests
}

public OutputStream getWrappedOutputStream() {
return monitor instanceof TerminalProgressBarMonitor ? ((OutputStream) monitor) : null;
}

@Override
public PrintWriter stderr() {
Expand Down
5 changes: 0 additions & 5 deletions src/org/rascalmpl/shell/REPLRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ private static ILanguageProtocol makeInterpreter(InputStream stdin, OutputStream
new RascalInterpreterREPL(prettyPrompt, allowColors, getHistoryFile()) {
@Override
protected Evaluator constructEvaluator(InputStream input, OutputStream stdout, OutputStream stderr, IDEServices services) {
if (services instanceof BasicIDEServices) {
// TODO: find a better way to promote this wrapper to stdout
stdout = ((BasicIDEServices) services).getWrappedOutputStream();
}

Evaluator eval = ShellEvaluatorFactory.getDefaultEvaluator(input, stdout, stderr);
eval.setMonitor(services);
return eval;
Expand Down

0 comments on commit ea79af8

Please sign in to comment.