From 1c5881c44aaf38a79aade4fd74f919b78a035cee Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 15 May 2025 10:33:32 +0100 Subject: [PATCH] LibCore: Remove `LADYBIRD_GIT_VERSION` environment variable usage This was previously used by the WPT runner to determine the git hash of a particular WPT run. This mechanism is no longer used, since it doesn't work with chunked WPT runs. --- Libraries/LibCore/Version.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Libraries/LibCore/Version.cpp b/Libraries/LibCore/Version.cpp index 572d8bf2d4b..8a35601a199 100644 --- a/Libraries/LibCore/Version.cpp +++ b/Libraries/LibCore/Version.cpp @@ -5,27 +5,12 @@ */ #include -#include #include namespace Core::Version { String read_long_version_string() { - auto validate_git_hash = [](auto hash) { - if (hash.length() < 4 || hash.length() > 40) - return false; - for (auto ch : hash) { - if (!is_ascii_hex_digit(ch)) - return false; - } - return true; - }; - - auto maybe_git_hash = Core::Environment::get("LADYBIRD_GIT_VERSION"sv); - - if (maybe_git_hash.has_value() && validate_git_hash(maybe_git_hash.value())) - return MUST(String::formatted("Version 1.0-{}", maybe_git_hash.value())); return "Version 1.0"_string; }