summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/string.c b/string.c
index 72240b8506..c031063acc 100644
--- a/string.c
+++ b/string.c
@@ -6334,7 +6334,7 @@ sym_equal(VALUE sym1, VALUE sym2)
static VALUE
sym_inspect(VALUE sym)
{
- VALUE str, klass = Qundef;
+ VALUE str;
ID id = SYM2ID(sym);
rb_encoding *enc;
@@ -6348,10 +6348,6 @@ sym_inspect(VALUE sym)
str = rb_str_inspect(str);
strncpy(RSTRING_PTR(str), ":\"", 2);
}
- if (klass != Qundef) {
- rb_str_cat2(str, "/");
- rb_str_append(str, rb_inspect(klass));
- }
return str;
}