summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/string.c b/string.c
index 84481dfe8c..c8ed9fd604 100644
--- a/string.c
+++ b/string.c
@@ -8484,13 +8484,7 @@ str_scrub_bang(int argc, VALUE *argv, VALUE str)
* symbol, returns <code>true</code>.
*/
-static VALUE
-sym_equal(VALUE sym1, VALUE sym2)
-{
- if (sym1 == sym2) return Qtrue;
- return Qfalse;
-}
-
+#define sym_equal rb_obj_equal
static int
sym_printable(const char *s, const char *send, rb_encoding *enc)