projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
262c9e2
)
Remove double verification checks
author
Marek Safar
<marek.safar@gmail.com>
Tue, 23 Apr 2013 17:15:03 +0000
(19:15 +0200)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 24 Apr 2013 08:29:46 +0000
(10:29 +0200)
mcs/class/corlib/System.IO/FileStream.cs
patch
|
blob
|
history
diff --git
a/mcs/class/corlib/System.IO/FileStream.cs
b/mcs/class/corlib/System.IO/FileStream.cs
index 0b76fbb629981b75e8bb6a491242ddf54ed251e9..98416dfa82f875a06a564fa7251b9d484c3c80df 100644
(file)
--- a/
mcs/class/corlib/System.IO/FileStream.cs
+++ b/
mcs/class/corlib/System.IO/FileStream.cs
@@
-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");
}