From bdddaa9f56702e1d3a58a14607e9881052424b53 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 3 Jul 2019 02:09:01 +0900 Subject: Use rb_ident_hash_new instead of rb_hash_new_compare_by_id The latter is same as the former, removed the duplicate function. --- ext/coverage/coverage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c index c7f5a5e34b..05026e1ba2 100644 --- a/ext/coverage/coverage.c +++ b/ext/coverage/coverage.c @@ -54,7 +54,7 @@ rb_coverage_start(int argc, VALUE *argv, VALUE klass) } if (mode & COVERAGE_TARGET_METHODS) { - me2counter = rb_hash_new_compare_by_id(); + me2counter = rb_ident_hash_new(); } else { me2counter = Qnil; -- cgit v1.2.3