From 04e6b90d5be8f13344066de0d64ba11020e2c094 Mon Sep 17 00:00:00 2001 From: manga_osyo Date: Sat, 29 Jun 2019 23:51:24 +0900 Subject: [PATCH] Remove unused method. --- lib/reline/history.rb | 4 ---- test/reline/test_key_actor_emacs.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/reline/history.rb b/lib/reline/history.rb index d988230941..155b543c19 100644 --- a/lib/reline/history.rb +++ b/lib/reline/history.rb @@ -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 diff --git a/test/reline/test_key_actor_emacs.rb b/test/reline/test_key_actor_emacs.rb index 04edf6b31f..7dd81caaf0 100644 --- a/test/reline/test_key_actor_emacs.rb +++ b/test/reline/test_key_actor_emacs.rb @@ -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)