Remove Platform.HasUNCSupport query

This commit is contained in:
Andrew Schwartzmeyer committed 2016-07-14 17:34:12 -07:00
1 parent 58fe228dc0
commit 2249afcd0a
3 files changed
+9 -20

No files matched your search

@@ -685,15 +685,11 @@ namespace Microsoft.PowerShell.Commands
/// <returns></returns>
internal static string GetUNCForNetworkDrive(string driveName)
{
// Porting note: on systems that do not support UNC paths, the UNC equivalent is the path itself
if (Platform.HasUNCSupport())
{
return WinGetUNCForNetworkDrive(driveName);
}
else
{
return driveName;
}
#if LINUX
return driveName;
#else
return WinGetUNCForNetworkDrive(driveName);
#endif
}
private static string WinGetUNCForNetworkDrive(string driveName)