summaryrefslogtreecommitdiff
path: root/lib/irb/context.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-21 13:08:22 -0700
committeraycabta <aycabta@gmail.com>2019-10-24 23:47:50 +0900
commit1fb45848257e3a599809c6cac52338999e604da0 (patch)
treefca8e2a7195f697b5f817a365c0b01f3bf5f10b2 /lib/irb/context.rb
parent8439caab0ac91aa33176060bb81cb4197ab21069 (diff)
Remove unsused output_method argument
Fixes Ruby Bug 9876.
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r--lib/irb/context.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index 5d2336008f..a8344f08fb 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -25,7 +25,7 @@ module IRB
# +nil+:: uses stdin or Reidline or Readline
# +String+:: uses a File
# +other+:: uses this as InputMethod
- def initialize(irb, workspace = nil, input_method = nil, output_method = nil)
+ def initialize(irb, workspace = nil, input_method = nil)
@irb = irb
if workspace
@workspace = workspace
@@ -111,12 +111,6 @@ module IRB
end
self.save_history = IRB.conf[:SAVE_HISTORY] if IRB.conf[:SAVE_HISTORY]
- if output_method
- @output_method = output_method
- else
- @output_method = StdioOutputMethod.new
- end
-
@echo = IRB.conf[:ECHO]
if @echo.nil?
@echo = true