summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-04-23 16:43:00 -0700
committerJeremy Evans <code@jeremyevans.net>2021-04-23 16:44:01 -0700
commit1f2b5c6dfe86e8ea2bbcd9a70d7a129da7e64a4a (patch)
treefb51772247397de197558052638fdcce5b15e304
parenta224ce8150f2bc687cf79eb415c931d87a4cd247 (diff)
Remove part of comment that is no longer accurate
In Ruby 2.7, empty keyword splats could be added back for backwards compatibility. However, that stopped in Ruby 3.0.
-rw-r--r--vm_insnhelper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index be09fb39d1..7c715c9a33 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -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--;