Skip to content

Commit

Permalink
Merge pull request #37 from osyo-manga/remove-unused-method
Browse files Browse the repository at this point in the history
Remove unused method
  • Loading branch information
aycabta authored Jun 29, 2019
2 parents 6dd53a4 + edb79e1 commit dcc1105
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/reline/history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,4 @@ def <<(val)
raise IndexError.new("index=<#{index}>") if index < 0 or size <= index
index
end

private def set_config(config)
@config = config
end
end
2 changes: 1 addition & 1 deletion test/test_key_actor_emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def setup
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)
Expand Down

0 comments on commit dcc1105

Please sign in to comment.