Skip to content

Commit 71dbf65

Browse files
committed
Clean up and remove not used code in ParserConfiguration
1 parent 7c020fe commit 71dbf65

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/org/truffleruby/parser/parser/ParserConfiguration.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
***** END LICENSE BLOCK *****/
3131
package org.truffleruby.parser.parser;
3232

33-
import org.jcodings.Encoding;
34-
import org.jcodings.specific.UTF8Encoding;
3533
import org.truffleruby.RubyContext;
3634
import org.truffleruby.parser.scope.StaticScope;
3735

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

53-
private Encoding defaultEncoding;
5451
private RubyContext context;
5552

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

71-
public void setDefaultEncoding(Encoding encoding) {
72-
this.defaultEncoding = encoding;
73-
}
74-
75-
public Encoding getDefaultEncoding() {
76-
if (defaultEncoding == null) {
77-
defaultEncoding = UTF8Encoding.INSTANCE;
78-
}
79-
80-
return defaultEncoding;
81-
}
82-
8368
public boolean isDebug() {
8469
return isDebug;
8570
}

0 commit comments

Comments
 (0)