Skip to content

Commit

Permalink
Removed unused dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Nov 22, 2024
1 parent ddc6dd8 commit 70c5c32
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public List<? extends TextEdit> formatting(URI uri, FormattingOptions options) {
}

var range = new Range(new Position(0, 0), Positions.getPosition(oldText, oldText.length()));
var visitor = new Visitor(sourceUnit, options, ast);
var visitor = new Visitor(sourceUnit, options);
visitor.visit();
var newText = visitor.toString();

Expand All @@ -101,16 +101,13 @@ private static class Visitor extends ScriptVisitorSupport {

private FormattingOptions options;

private ScriptAstCache ast;

private Formatter fmt;

private int maxIncludeWidth = 0;

public Visitor(SourceUnit sourceUnit, FormattingOptions options, ScriptAstCache ast) {
public Visitor(SourceUnit sourceUnit, FormattingOptions options) {
this.sourceUnit = sourceUnit;
this.options = options;
this.ast = ast;
this.fmt = new Formatter(options);
}

Expand Down

0 comments on commit 70c5c32

Please sign in to comment.