diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-30 17:33:33 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-08-30 17:34:18 -0700 |
commit | 6424d316b993ecceb6f583ae476096274e304788 (patch) | |
tree | 01289774dffc9900cd2775e44a24cabe731f88d3 /vm_args.c | |
parent | 8cb9efbbe62a9a544bff2cd6571fc756ce92a738 (diff) |
Remove a verbose warning that is no longer needed
This warns about a case that we will continue to support.
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -854,17 +854,6 @@ setup_parameters_complex(rb_execution_context_t * const ec, const rb_iseq_t * co else if (!NIL_P(keyword_hash) && RHASH_SIZE(keyword_hash) > 0 && arg_setup_type == arg_setup_method) { argument_kw_error(ec, iseq, "unknown", rb_hash_keys(keyword_hash)); } - else if (kw_splat && NIL_P(keyword_hash)) { - if (RTEST(ruby_verbose)) { - VALUE path = rb_iseq_path(iseq); - VALUE line = rb_iseq_first_lineno(iseq); - VALUE label = rb_iseq_label(iseq); - rb_compile_warning(NIL_P(path) ? NULL : RSTRING_PTR(path), FIX2INT(line), - "in `%s': the last argument was passed as a single Hash", - NIL_P(label) ? NULL : RSTRING_PTR(label)); - rb_warning("although a splat keyword arguments here"); - } - } if (iseq->body->param.flags.has_block) { if (iseq->body->local_iseq == iseq) { |