Merge pull request dotnet/corertdotnet/coreclr#3446 from jkotas/nmirror-merge
authorJan Kotas <jkotas@microsoft.com>
Thu, 27 Apr 2017 23:47:53 +0000 (16:47 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 28 Apr 2017 03:13:50 +0000 (20:13 -0700)
Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/f3ab5c1b60559a742da1d3487bb6a0942c5903ed

src/coreclr/src/mscorlib/shared/System/IO/FileStream.WinRT.cs

index 062b160..b9a9f8a 100644 (file)
@@ -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
     }
 }