aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/string.c b/string.c
index 16c1f02b1b..709c26399c 100644
--- a/string.c
+++ b/string.c
@@ -4272,8 +4272,6 @@ rb_str_scan(str, pat)
long start = 0;
VALUE match = Qnil;
- RETURN_ENUMERATOR(str, 1, &pat);
-
pat = get_pat(pat, 1);
if (!rb_block_given_p()) {
VALUE ary = rb_ary_new();