aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-01 11:36:54 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-01 18:55:52 +0900
commitfae0b664315c23ef7db451f6241d256c12217051 (patch)
tree5dfc239c5976f358a61021e2b14660d63c5d1c92 /random.c
parent84891bffe8e68e12a7881d2bbae0db8267035e8a (diff)
downloadruby-fae0b664315c23ef7db451f6241d256c12217051.tar.gz
Remove deprecated Random::DEFAULT [Feature #17351]
Diffstat (limited to 'random.c')
-rw-r--r--random.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/random.c b/random.c
index f3dec5cca2..dc7e4771cd 100644
--- a/random.c
+++ b/random.c
@@ -1816,9 +1816,6 @@ InitVM_Random(void)
rb_define_method(rb_cRandom, "seed", random_get_seed, 0);
#endif
- rb_define_const(rb_cRandom, "DEFAULT", rb_cRandom);
- rb_deprecate_constant(rb_cRandom, "DEFAULT");
-
rb_define_singleton_method(rb_cRandom, "srand", rb_f_srand, -1);
rb_define_singleton_method(rb_cRandom, "rand", random_s_rand, -1);
rb_define_singleton_method(rb_cRandom, "bytes", random_s_bytes, 1);