summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorh2so5 <[email protected]>2013-05-01 21:10:17 +0900
committerh2so5 <[email protected]>2013-05-01 21:10:17 +0900
commit1e5b00e772150afe1ec36e3edc131b8dc304e493 (patch)
treec5a485fb3a6ff99861eb59dc73249906bd4068e6 /src
parent96637a7723bf337580f649e9b2fc77a40706d216 (diff)
downloadmruby-1e5b00e772150afe1ec36e3edc131b8dc304e493.tar.gz
mruby-1e5b00e772150afe1ec36e3edc131b8dc304e493.zip
Remove mrb_class_obj_get
Diffstat (limited to 'src')
-rw-r--r--src/range.c2
-rw-r--r--src/variable.c9
2 files changed, 1 insertions, 10 deletions
diff --git a/src/range.c b/src/range.c
index 6068b9f99..7e3e03136 100644
--- a/src/range.c
+++ b/src/range.c
@@ -9,7 +9,7 @@
#include "mruby/range.h"
#include "mruby/string.h"
-#define RANGE_CLASS (mrb_class_obj_get(mrb, "Range"))
+#define RANGE_CLASS (mrb_class_get(mrb, "Range"))
static void
range_check(mrb_state *mrb, mrb_value a, mrb_value b)
diff --git a/src/variable.c b/src/variable.c
index 33932ec4c..355bdde14 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -1066,15 +1066,6 @@ mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id)
return mrb_iv_get(mrb, obj, id);
}
-struct RClass *
-mrb_class_obj_get(mrb_state *mrb, const char *name)
-{
- mrb_value mod = mrb_obj_value(mrb->object_class);
- mrb_sym sym = mrb_intern(mrb, name);
-
- return mrb_class_ptr(mrb_const_get(mrb, mod, sym));
-}
-
struct csym_arg {
struct RClass *c;
mrb_sym sym;