chore: remove unused StringExtensions.cs (#3037)

This commit is contained in:
Max Schmitt 2024-11-05 16:23:27 +01:00 коммит произвёл GitHub
Родитель f426f251c6
Коммит b2ebd13bf6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 8 добавлений и 69 удалений

Просмотреть файл

@ -30,7 +30,7 @@ using System.Net.Http;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml; using System.Xml;
using Playwright.Tooling.Options; using CommandLine;
namespace Playwright.Tooling; namespace Playwright.Tooling;
@ -186,3 +186,10 @@ internal class DriverDownloader
return true; return true;
} }
} }
[Verb("download-drivers")]
internal class DownloadDriversOptions
{
[Option(Required = true, HelpText = "Solution path.")]
public string BasePath { get; set; }
}

Просмотреть файл

@ -1,33 +0,0 @@
/*
* MIT License
*
* Copyright (c) 2020 Darío Kondratiuk
* Modifications copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
using System.Net;
namespace Playwright.Tooling.Extensions;
internal static class StringExtensions
{
public static string ToHtml(this string value) => WebUtility.HtmlEncode(value);
}

Просмотреть файл

@ -1,34 +0,0 @@
/*
* MIT License
*
* Copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
using CommandLine;
namespace Playwright.Tooling.Options;
[Verb("download-drivers")]
internal class DownloadDriversOptions
{
[Option(Required = true, HelpText = "Solution path.")]
public string BasePath { get; set; }
}

Просмотреть файл

@ -24,7 +24,6 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using CommandLine; using CommandLine;
using Playwright.Tooling.Options;
namespace Playwright.Tooling; namespace Playwright.Tooling;