aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/pathname.rb6
2 files changed, 5 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 9fe9c306fc..56f53ec9f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Feb 24 00:19:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname#foreachline): removed wrongly
+ resurrected method. [ruby-dev:38065]
+
Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to
diff --git a/lib/pathname.rb b/lib/pathname.rb
index ce9179a16a..e58035c2be 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -804,12 +804,6 @@ class Pathname # * IO *
IO.foreach(@path, *args, &block)
end
- # Pathname#foreachline is *obsoleted* at 1.8.1. Use #each_line.
- def foreachline(*args, &block)
- warn "Pathname#foreachline is obsoleted. Use Pathname#each_line."
- each_line(*args, &block)
- end
-
# See <tt>IO.read</tt>. Returns all data from the file, or the first +N+ bytes
# if specified.
def read(*args) IO.read(@path, *args) end