Skip to content

Commit

Permalink
Clean up and remove not used code in ParserConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Oct 12, 2023
1 parent 7c020fe commit 71dbf65
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
***** END LICENSE BLOCK *****/
package org.truffleruby.parser.parser;

import org.jcodings.Encoding;
import org.jcodings.specific.UTF8Encoding;
import org.truffleruby.RubyContext;
import org.truffleruby.parser.scope.StaticScope;

Expand All @@ -50,7 +48,6 @@ public final class ParserConfiguration {
private boolean frozenStringLiteral = false;
public boolean allowTruffleRubyPrimitives = false;

private Encoding defaultEncoding;
private RubyContext context;

public ParserConfiguration(RubyContext context, boolean inlineSource, boolean isFileParse, boolean saveData) {
Expand All @@ -68,18 +65,6 @@ public boolean isFrozenStringLiteral() {
return frozenStringLiteral;
}

public void setDefaultEncoding(Encoding encoding) {
this.defaultEncoding = encoding;
}

public Encoding getDefaultEncoding() {
if (defaultEncoding == null) {
defaultEncoding = UTF8Encoding.INSTANCE;
}

return defaultEncoding;
}

public boolean isDebug() {
return isDebug;
}
Expand Down

0 comments on commit 71dbf65

Please sign in to comment.