ruby-changes:58183
From: Alan <ko1@a...>
Date: Thu, 10 Oct 2019 01:00:09 +0900 (JST)
Subject: [ruby-changes:58183] 8dc5fe6e89 (master): Simplify rb_define_module_id
https://git.ruby-lang.org/ruby.git/commit/?id=8dc5fe6e89 From 8dc5fe6e89cb86bd92628b5f34ba5f549a241c2d Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Wed, 9 Oct 2019 11:34:03 -0400 Subject: Simplify rb_define_module_id diff --git a/class.c b/class.c index 09afc72..010faed 100644 --- a/class.c +++ b/class.c @@ -768,11 +768,7 @@ rb_module_new(void) https://github.com/ruby/ruby/blob/trunk/class.c#L768 VALUE rb_define_module_id(ID id) { - VALUE mdl; - - mdl = rb_module_new(); - - return mdl; + return rb_module_new(); } VALUE -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/