Remove Platform.SupportsReparsePoints query

This commit is contained in:
Andrew Schwartzmeyer
2016-07-14 17:34:12 -07:00
parent 465e55d32a
commit dbe16ca5d7
2 changed files with 5 additions and 14 deletions
@@ -217,12 +217,6 @@ namespace System.Management.Automation
}
// non-windows does not have reparse points
internal static bool SupportsReparsePoints()
{
return IsWindows;
}
// non-windows does not support removing drives
internal static bool SupportsRemoveDrive()
{
@@ -8589,14 +8589,11 @@ namespace Microsoft.PowerShell.Commands
private static SafeFileHandle OpenReparsePoint(string reparsePoint, FileDesiredAccess accessMode)
{
if (Platform.SupportsReparsePoints())
{
return WinOpenReparsePoint(reparsePoint,accessMode);
}
else
{
throw new PlatformNotSupportedException();
}
#if LINUX
throw new PlatformNotSupportedException();
#else
return WinOpenReparsePoint(reparsePoint,accessMode);
#endif
}
private static SafeFileHandle WinOpenReparsePoint(string reparsePoint, FileDesiredAccess accessMode)