From 15c1fd83a1b2cb344021fc4b215b805fa5dd2d4e Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 8 Nov 2009 01:08:12 -0500 Subject: [PATCH] Remove File.open - it is implemented by StringIO --- lib/fakefs/file.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/fakefs/file.rb b/lib/fakefs/file.rb index e9947bf..0d988d7 100644 --- a/lib/fakefs/file.rb +++ b/lib/fakefs/file.rb @@ -113,14 +113,6 @@ module FakeFS FileSystem.find(symlink.target).to_s end - def self.open(path, mode=READ_ONLY, perm = 0644) - if block_given? - yield new(path, mode, perm) - else - new(path, mode, perm) - end - end - def self.read(path) file = new(path) if file.exists?