Skip to content

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Jan 10, 2023

Some of RubyLex's methods have unused/test-only arguments, so I remove them in this PR to simplify things.

It's optional argument is never used by any caller.
The argument is only used in a test case, which can be easily replaced by
a block argument.
@hasumikin
Copy link
Collaborator

LGTM

@st0012 st0012 merged commit 59bf237 into master Jan 11, 2023
@st0012 st0012 deleted the drop-unused-argument branch January 11, 2023 21:26
matzbot pushed a commit to ruby/ruby that referenced this pull request Jan 11, 2023
(ruby/irb#504)

* Simplify `RubyLex#set_prompt`

It's optional argument is never used by any caller.

* Remove the optional `p` argument from `RubyLex#set_input`

The argument is only used in a test case, which can be easily replaced by
a block argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants