From 71dbf65cfc4033c42048b00842c90fd327724803 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Wed, 11 Oct 2023 19:28:45 +0300 Subject: [PATCH] Clean up and remove not used code in ParserConfiguration --- .../parser/parser/ParserConfiguration.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/org/truffleruby/parser/parser/ParserConfiguration.java b/src/main/java/org/truffleruby/parser/parser/ParserConfiguration.java index 52e1f658bdc6..6939272ba988 100644 --- a/src/main/java/org/truffleruby/parser/parser/ParserConfiguration.java +++ b/src/main/java/org/truffleruby/parser/parser/ParserConfiguration.java @@ -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; @@ -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) { @@ -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; }