Commit b473e9b2 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1355 from suzukaze/refactor-object.c

Refactor true_or() and false_and() in object.c.
parents 6ed8b212 948b1716
...@@ -172,9 +172,6 @@ true_to_s(mrb_state *mrb, mrb_value obj) ...@@ -172,9 +172,6 @@ true_to_s(mrb_state *mrb, mrb_value obj)
static mrb_value static mrb_value
true_or(mrb_state *mrb, mrb_value obj) true_or(mrb_state *mrb, mrb_value obj)
{ {
mrb_bool obj2;
mrb_get_args(mrb, "b", &obj2);
return mrb_true_value(); return mrb_true_value();
} }
...@@ -203,9 +200,6 @@ true_or(mrb_state *mrb, mrb_value obj) ...@@ -203,9 +200,6 @@ true_or(mrb_state *mrb, mrb_value obj)
static mrb_value static mrb_value
false_and(mrb_state *mrb, mrb_value obj) false_and(mrb_state *mrb, mrb_value obj)
{ {
mrb_bool obj2;
mrb_get_args(mrb, "b", &obj2);
return mrb_false_value(); return mrb_false_value();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment