From 295bc2fe2577336807db6e2c30bd642bdb6482bc Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 5 Jan 2010 05:59:23 +0000 Subject: 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 --- variable.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'variable.c') 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) { -- cgit v1.2.3