From 719452b8d2c7201dcaca0c2264051783bbd89c67 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Fri, 14 Mar 2014 10:47:54 +0900 Subject: remove unsed. --- mrblib/file.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mrblib') diff --git a/mrblib/file.rb b/mrblib/file.rb index a4fcd3212..5a2716a66 100644 --- a/mrblib/file.rb +++ b/mrblib/file.rb @@ -12,12 +12,6 @@ class File < IO if fd_or_path.kind_of? Fixnum super(fd_or_path, mode) else - if Object.const_defined? :Errno - eclass = [Errno::ENOENT, Errno::ENFILE] - else - eclass = FileError - end - @path = fd_or_path begin fd = IO.sysopen(@path, mode, perm) -- cgit v1.2.3