mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rb_ary_dig, rb_hash_dig: nobody is using them outside.
mark them static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76daf51c36
commit
841d5ae80e
2 changed files with 2 additions and 2 deletions
2
array.c
2
array.c
|
@ -5828,7 +5828,7 @@ rb_ary_any_p(int argc, VALUE *argv, VALUE ary)
|
|||
* [42, {foo: :bar}].dig(1, :foo) #=> :bar
|
||||
*/
|
||||
|
||||
VALUE
|
||||
static VALUE
|
||||
rb_ary_dig(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
|
||||
|
|
2
hash.c
2
hash.c
|
@ -3065,7 +3065,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash)
|
|||
* g.dig(:foo, :bar) #=> TypeError: no implicit conversion of Symbol into Integer
|
||||
*/
|
||||
|
||||
VALUE
|
||||
static VALUE
|
||||
rb_hash_dig(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
|
||||
|
|
Loading…
Reference in a new issue