Ver Fonte

LibTimeZone: Remove AK_OS_SERENITY ifdef

Remove special case for SerenityOS as fallback will still work.
Nathan E. Egge há 1 ano atrás
pai
commit
b040e5c12b
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      Userland/Libraries/LibTimeZone/TimeZone.cpp

+ 0 - 4
Userland/Libraries/LibTimeZone/TimeZone.cpp

@@ -103,9 +103,6 @@ StringView current_time_zone()
         return "UTC"sv;
     }
 
-#ifdef AK_OS_SERENITY
-    return system_time_zone();
-#else
     static constexpr auto zoneinfo = "/zoneinfo"sv;
 
     char* real_path = realpath("/etc/localtime", nullptr);
@@ -131,7 +128,6 @@ StringView current_time_zone()
 
     // Read the system timezone file /etc/timezone
     return system_time_zone();
-#endif
 }
 
 ErrorOr<void> change_time_zone([[maybe_unused]] StringView time_zone)