Skip to content

Commit

Permalink
Removed NuGet.PackageManagement.VisualStudio.PathValidator.IsValidUrl…
Browse files Browse the repository at this point in the history
…(string)
  • Loading branch information
dominoFire committed Mar 18, 2020
1 parent e18ac70 commit 7d9c58c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/NuGet.Clients/NuGet.VisualStudio.Common/PathValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,6 @@ public static bool IsValidUncPath(string path)
}
}

/// <summary>
/// Validates that url is properly formatted as an URL based on .NET <see cref="System.Uri">Uri</see> class.
/// </summary>
/// <param name="url">The url to validate.</param>
/// <returns>True if valid, False if invalid.</returns>
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "0#", Justification = "We're trying to validate that a stirng is infct a uri")]
[Obsolete("Use NuGet.Common.PathValidator.IsValidUrl(string) instead")]
public static bool IsValidUrl(string url)
{
return Common.PathValidator.IsValidUrl(url);
}

public static string GetCanonicalPath(string path)
{
if (IsValidLocalPath(path)
Expand Down

0 comments on commit 7d9c58c

Please sign in to comment.