Commit 04774e5b authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

remove unused exception variables.

parent 7c62d893
...@@ -200,7 +200,7 @@ class IO ...@@ -200,7 +200,7 @@ class IO
while 1 while 1
begin begin
_read_buf _read_buf
rescue EOFError => e rescue EOFError
array = nil if array.empty? and (not length.nil?) and length != 0 array = nil if array.empty? and (not length.nil?) and length != 0
break break
end end
...@@ -248,7 +248,7 @@ class IO ...@@ -248,7 +248,7 @@ class IO
while 1 while 1
begin begin
_read_buf _read_buf
rescue EOFError => e rescue EOFError
array = nil if array.empty? array = nil if array.empty?
break break
end end
...@@ -276,7 +276,7 @@ class IO ...@@ -276,7 +276,7 @@ class IO
def gets(*args) def gets(*args)
begin begin
readline(*args) readline(*args)
rescue EOFError => e rescue EOFError
nil nil
end end
end end
...@@ -291,7 +291,7 @@ class IO ...@@ -291,7 +291,7 @@ class IO
def getc def getc
begin begin
readchar readchar
rescue EOFError => e rescue EOFError
nil nil
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment