1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove unused method.

This commit is contained in:
manga_osyo 2019-06-29 23:51:24 +09:00 committed by aycabta
parent 423feb53a2
commit 04e6b90d5b
2 changed files with 1 additions and 5 deletions

View file

@ -53,8 +53,4 @@ class Reline::History < Array
raise IndexError.new("index=<#{index}>") if index < 0 or size <= index
index
end
private def set_config(config)
@config = config
end
end

View file

@ -5,7 +5,7 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
Reline.send(:test_mode)
@prompt = '> '
@config = Reline::Config.new # Emacs mode is default
Reline::HISTORY.send(:set_config, @config)
Reline::HISTORY.instance_variable_set(:@config, @config)
@encoding = (RELINE_TEST_ENCODING rescue Encoding.default_external)
@line_editor = Reline::LineEditor.new(@config)
@line_editor.reset(@prompt, @encoding)