Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop unused arguments in RubyLex #504

Merged
merged 2 commits into from
Jan 11, 2023
Merged

Drop unused arguments in RubyLex #504

merged 2 commits into from
Jan 11, 2023

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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants