summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/stringio/stringio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index d140ced7e7..b9c7eb7f80 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -953,7 +953,6 @@ strio_each(int argc, VALUE *argv, VALUE self)
RETURN_ENUMERATOR(self, argc, argv);
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
- rb_lastline_set(line);
rb_yield(line);
}
return self;
@@ -975,7 +974,6 @@ strio_readlines(int argc, VALUE *argv, VALUE self)
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
rb_ary_push(ary, line);
}
- rb_lastline_set(Qnil);
return ary;
}