Project

General

Profile

« Previous | Next » 

Revision 0387b86c

Added by st0012 (Stan Lo) over 2 years ago

[ruby/irb] Remove unused InputMethod#initialize
(https://github.com/ruby/irb/pull/635)

  • Remove unused InputMethod#initialize

The constructor takes a file_name argument, but it is never used. The
only input method that needs a file is FileInputMethod, which has its
own constructor to take a file object directly.

So the constructor in InputMethod is not needed and its child classes
don't need to call super in their constructors.

  • Remove unused FileInputMethod#file_name

https://github.com/ruby/irb/commit/153b1e9d1c