mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
Userland: Remove unecessary uses of __serenity__ macro
This commit is contained in:
parent
828441852f
commit
539fb08551
10 changed files with 4 additions and 51 deletions
|
@ -13,9 +13,7 @@
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
TRY(Core::System::pledge("stdio settime"));
|
||||
#endif
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
Optional<double> delta;
|
||||
|
@ -34,9 +32,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::adjtime(&delta_timeval, nullptr));
|
||||
}
|
||||
|
||||
#ifdef __serenity__
|
||||
TRY(Core::System::pledge("stdio"));
|
||||
#endif
|
||||
|
||||
timeval remaining_delta_timeval;
|
||||
TRY(Core::System::adjtime(nullptr, &remaining_delta_timeval));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue