From c86b5068d0e9fe2d075179b06489e672c25a5ec4 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 16 Feb 2025 14:03:15 +1300 Subject: [PATCH] xml: Remove validity check on URL created with file scheme It is not possible for this to return an invalid URL. --- Utilities/xml.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Utilities/xml.cpp b/Utilities/xml.cpp index 8b992993f92..9014b60b1ae 100644 --- a/Utilities/xml.cpp +++ b/Utilities/xml.cpp @@ -434,11 +434,6 @@ static void do_run_tests(XML::Document& document) path_builder.append(suite.attributes.find("URI")->value); auto url = URL::create_with_file_scheme(path_builder.string_view()); - if (!url.is_valid()) { - warnln("Invalid URL {}", path_builder.string_view()); - s_test_results.set(path_builder.string_view(), TestResult::RunnerFailed); - continue; - } auto file_path = URL::percent_decode(url.serialize_path()); auto file_result = Core::File::open(file_path, Core::File::OpenMode::Read);