Skip to content

Commit

Permalink
Remove part of comment that is no longer accurate
Browse files Browse the repository at this point in the history
In Ruby 2.7, empty keyword splats could be added back for backwards
compatibility.  However, that stopped in Ruby 3.0.
  • Loading branch information
jeremyevans committed Apr 23, 2021
1 parent a224ce8 commit 1f2b5c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vm_insnhelper.c
Expand Up @@ -2262,11 +2262,6 @@ CALLER_REMOVE_EMPTY_KW_SPLAT(struct rb_control_frame_struct *restrict cfp,
if (UNLIKELY(calling->kw_splat)) {
/* This removes the last Hash object if it is empty.
* So, vm_ci_flag(ci) & VM_CALL_KW_SPLAT is now inconsistent.
* However, you can use vm_ci_flag(ci) & VM_CALL_KW_SPLAT to
* determine whether a hash should be added back with
* warning (for backwards compatibility in cases where
* the method does not have the number of required
* arguments.
*/
if (RHASH_EMPTY_P(cfp->sp[-1])) {
cfp->sp--;
Expand Down

0 comments on commit 1f2b5c6

Please sign in to comment.