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.
[ruby/irb] Remove unused
InputMethod#initialize(https://github.com/ruby/irb/pull/635)
The constructor takes a
file_nameargument, but it is never used. Theonly input method that needs a file is
FileInputMethod, which has itsown constructor to take a file object directly.
So the constructor in
InputMethodis not needed and its child classesdon't need to call
superin their constructors.https://github.com/ruby/irb/commit/153b1e9d1c