diff options
author | Anirudh Agnihotry <anirudhagnihotry098@gmail.com> | 2017-11-30 22:54:26 +0300 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2017-12-01 21:32:00 +0300 |
commit | 58f9c991887293ca8a9ca375c63e15b2e9664798 (patch) | |
tree | 92fe3b747710fade1ad73a7b4880086e539a942c /src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs | |
parent | e0d999b6e85b325beada1f3cfec205d2cdf34684 (diff) |
Removed Check Invalid Path Chars (dotnet/coreclr#15191)
Removed Check Invalid Chars from Coreclr
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/IO/Path.Windows.cs | 4 |
1 files changed, 0 insertions, 4 deletions
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); |