summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
commit295bc2fe2577336807db6e2c30bd642bdb6482bc (patch)
treee8af2c0334772bc31cc943c68fd2a884605830cc /variable.c
parent623a79c376fec2f76cc33819807f1903b40c3dea (diff)
removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/variable.c b/variable.c
index 722c021c59..62256a049e 100644
--- a/variable.c
+++ b/variable.c
@@ -313,27 +313,6 @@ rb_class2name(VALUE klass)
return RSTRING_PTR(rb_class_name(klass));
}
-/*!
- * \internal
- * Same as rb_class2name but safe if during GC
- *
- * \post the returned pointer points a string. not NULL.
- */
-const char *
-rb_class2name_without_alloc(VALUE klass)
-{
- if (RCLASS_IV_TBL(klass)) {
- st_data_t n;
- if (st_lookup(RCLASS_IV_TBL(klass), (st_data_t)classpath, &n) ||
- st_lookup(RCLASS_IV_TBL(klass), (st_data_t)classid, &n) ||
- st_lookup(RCLASS_IV_TBL(klass), (st_data_t)tmp_classpath, &n)) {
- if (TYPE(n) != T_STRING) rb_bug("class path is not set properly");
- return RSTRING_PTR(n);
- }
- }
- return "(anonymous)";
-}
-
const char *
rb_obj_classname(VALUE obj)
{