From: Jan Kotas Date: Thu, 27 Apr 2017 23:47:53 +0000 (-0700) Subject: Merge pull request dotnet/corertdotnet/coreclr#3446 from jkotas/nmirror-merge X-Git-Tag: submit/tizen/20210909.063632~11030^2~7077 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=827b67d34a8a261903f2cc9a7d96fabf452de551;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Merge pull request dotnet/corertdotnet/coreclr#3446 from jkotas/nmirror-merge Merge nmirror to master Signed-off-by: dotnet-bot Commit migrated from https://github.com/dotnet/coreclr/commit/f3ab5c1b60559a742da1d3487bb6a0942c5903ed --- diff --git a/src/coreclr/src/mscorlib/shared/System/IO/FileStream.WinRT.cs b/src/coreclr/src/mscorlib/shared/System/IO/FileStream.WinRT.cs index 062b160..b9a9f8a 100644 --- a/src/coreclr/src/mscorlib/shared/System/IO/FileStream.WinRT.cs +++ b/src/coreclr/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 } }