From 58f9c991887293ca8a9ca375c63e15b2e9664798 Mon Sep 17 00:00:00 2001 From: Anirudh Agnihotry Date: Thu, 30 Nov 2017 11:54:26 -0800 Subject: Removed Check Invalid Path Chars (dotnet/coreclr#15191) Removed Check Invalid Chars from Coreclr Signed-off-by: dotnet-bot --- src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs') diff --git a/src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs b/src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs index 373234782..5d92d3b49 100644 --- a/src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs +++ b/src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs @@ -119,8 +119,6 @@ namespace System.IO { if (path != null) { - PathInternal.CheckInvalidPathChars(path); - int length = path.Length; if ((length >= 1 && PathInternal.IsDirectorySeparator(path[0])) || (length >= 2 && PathInternal.IsValidDriveChar(path[0]) && path[1] == PathInternal.VolumeSeparatorChar)) @@ -144,8 +142,6 @@ namespace System.IO if (PathInternal.IsEffectivelyEmpty(path)) throw new ArgumentException(SR.Arg_PathEmpty, nameof(path)); - PathInternal.CheckInvalidPathChars(path); - // Need to return the normalized directory separator path = PathInternal.NormalizeDirectorySeparators(path); -- cgit v1.2.3