summaryrefslogtreecommitdiff
path: root/ext/stringio
diff options
context:
space:
mode:
Diffstat (limited to 'ext/stringio')
-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 011ccb73ff..86ff56534c 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -969,7 +969,6 @@ strio_each(argc, argv, self)
VALUE line;
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
- rb_lastline_set(line);
rb_yield(line);
}
return self;
@@ -992,7 +991,6 @@ strio_readlines(argc, argv, self)
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
rb_ary_push(ary, line);
}
- rb_lastline_set(Qnil);
return ary;
}