diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-04-27 16:47:53 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-04-27 20:13:50 -0700 |
commit | f3ab5c1b60559a742da1d3487bb6a0942c5903ed (patch) | |
tree | 2f916ccf75bc69be4f45334840f710182d61f86e /src/mscorlib/shared/System | |
parent | 5951c7231e226e8275a1f4ddc646d21fee53403e (diff) | |
download | coreclr-f3ab5c1b60559a742da1d3487bb6a0942c5903ed.tar.gz coreclr-f3ab5c1b60559a742da1d3487bb6a0942c5903ed.tar.bz2 coreclr-f3ab5c1b60559a742da1d3487bb6a0942c5903ed.zip |
Merge pull request dotnet/corert#3446 from jkotas/nmirror-merge
Merge nmirror to master
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/mscorlib/shared/System')
-rw-r--r-- | src/mscorlib/shared/System/IO/FileStream.WinRT.cs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mscorlib/shared/System/IO/FileStream.WinRT.cs b/src/mscorlib/shared/System/IO/FileStream.WinRT.cs index 062b160b57..b9a9f8a783 100644 --- a/src/mscorlib/shared/System/IO/FileStream.WinRT.cs +++ b/src/mscorlib/shared/System/IO/FileStream.WinRT.cs @@ -51,28 +51,10 @@ namespace System.IO if (errorCode == Interop.Errors.ERROR_PATH_NOT_FOUND && _path.Length == PathInternal.GetRootLength(_path)) errorCode = Interop.Errors.ERROR_ACCESS_DENIED; - throw Win32Marshal.GetExceptionForWin32Error(errorCode, $"{_path} {options} {fAccess} {share} {mode}"); + throw Win32Marshal.GetExceptionForWin32Error(errorCode, _path); } return fileHandle; } - -#if PROJECTN - // TODO: These internal methods should be removed once we start consuming updated CoreFX builds - public static FileStream InternalOpen(string path, int bufferSize = 4096, bool useAsync = true) - { - return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize, useAsync); - } - - public static FileStream InternalCreate(string path, int bufferSize = 4096, bool useAsync = true) - { - return new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read, bufferSize, useAsync); - } - - public static FileStream InternalAppend(string path, int bufferSize = 4096, bool useAsync = true) - { - return new FileStream(path, FileMode.Append, FileAccess.Write, FileShare.Read, bufferSize, useAsync); - } -#endif } } |