From e815847f86d9236f2199b812a49b50e63e02c49d Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 24 Oct 2024 11:14:20 +0100 Subject: [PATCH] LibCore: Remove SerenityOS specific version number code --- Userland/Libraries/LibCore/Version.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Userland/Libraries/LibCore/Version.cpp b/Userland/Libraries/LibCore/Version.cpp index 2f7d3c0dbd8..8f5b646c734 100644 --- a/Userland/Libraries/LibCore/Version.cpp +++ b/Userland/Libraries/LibCore/Version.cpp @@ -7,27 +7,11 @@ #include #include -#ifdef AK_OS_SERENITY -# include -#endif - namespace Core::Version { ErrorOr read_long_version_string() { -#ifdef AK_OS_SERENITY - struct utsname uts; - int rc = uname(&uts); - if ((rc) < 0) { - return Error::from_syscall("uname"sv, rc); - } - auto const* version = uts.release; - auto const* git_hash = uts.version; - - return String::formatted("Version {} revision {}", version, git_hash); -#else return "Version 1.0"_string; -#endif } }