summaryrefslogtreecommitdiff
path: root/ext/digest/rmd160
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-21 16:31:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-22 00:19:55 +0900
commit74c6662af5d9748baff7c32e8f0baf7996dd898e (patch)
treeafdd921e0e957c0dc988f8be931e4bd2010b59e4 /ext/digest/rmd160
parentc030cec7cac3bacd230b87c9610bc67d8b89ab26 (diff)
Hoisted out rb_digest_namespace
Diffstat (limited to 'ext/digest/rmd160')
-rw-r--r--ext/digest/rmd160/rmd160init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/digest/rmd160/rmd160init.c b/ext/digest/rmd160/rmd160init.c
index 10d93701634..a2c0a023c02 100644
--- a/ext/digest/rmd160/rmd160init.c
+++ b/ext/digest/rmd160/rmd160init.c
@@ -49,12 +49,10 @@ Init_rmd160(void)
{
VALUE mDigest, cDigest_Base, cDigest_RMD160;
- rb_require("digest");
-
#if 0
mDigest = rb_define_module("Digest"); /* let rdoc know */
#endif
- mDigest = rb_path2class("Digest");
+ mDigest = rb_digest_namespace();
cDigest_Base = rb_path2class("Digest::Base");
cDigest_RMD160 = rb_define_class_under(mDigest, "RMD160", cDigest_Base);