Remove double verification checks
authorMarek Safar <marek.safar@gmail.com>
Tue, 23 Apr 2013 17:15:03 +0000 (19:15 +0200)
committerMarek Safar <marek.safar@gmail.com>
Wed, 24 Apr 2013 08:29:46 +0000 (10:29 +0200)
mcs/class/corlib/System.IO/FileStream.cs

index 0b76fbb629981b75e8bb6a491242ddf54ed251e9..98416dfa82f875a06a564fa7251b9d484c3c80df 100644 (file)
@@ -404,13 +404,6 @@ namespace System.IO
                                return(buf_start + buf_offset);
                        }
                        set {
-                               if (handle == MonoIO.InvalidHandle)
-                                       throw new ObjectDisposedException ("Stream has been closed");
-
-                               if(CanSeek == false) {
-                                       throw new NotSupportedException("The stream does not support seeking");
-                               }
-
                                if(value < 0) {
                                        throw new ArgumentOutOfRangeException("Attempt to set the position to a negative value");
                                }