summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2019-10-09 11:34:03 -0400
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-10 00:59:50 +0900
commit8dc5fe6e89cb86bd92628b5f34ba5f549a241c2d (patch)
tree028bba4bb265277afccf4a94c1cec39bda11f66f /class.c
parentecf6c0402eb8706001831e0464b47cbed8e82fa0 (diff)
Simplify rb_define_module_id
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2544
Diffstat (limited to 'class.c')
-rw-r--r--class.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/class.c b/class.c
index 09afc720e3..010faed3eb 100644
--- a/class.c
+++ b/class.c
@@ -768,11 +768,7 @@ rb_module_new(void)
VALUE
rb_define_module_id(ID id)
{
- VALUE mdl;
-
- mdl = rb_module_new();
-
- return mdl;
+ return rb_module_new();
}
VALUE