1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

Userland: Remove unecessary uses of __serenity__ macro

This commit is contained in:
Andrew Kaster 2022-10-09 15:38:06 -06:00 committed by Linus Groh
parent 828441852f
commit 539fb08551
10 changed files with 4 additions and 51 deletions

View file

@ -48,9 +48,7 @@ ErrorOr<bool> format_file(StringView path, bool inplace)
ErrorOr<int> serenity_main(Main::Arguments args)
{
#ifdef __serenity__
TRY(Core::System::pledge("stdio rpath wpath cpath"));
#endif
bool inplace = false;
Vector<String> files;
@ -61,10 +59,8 @@ ErrorOr<int> serenity_main(Main::Arguments args)
args_parser.add_positional_argument(files, "File(s) to process", "path", Core::ArgsParser::Required::No);
args_parser.parse(args);
#ifdef __serenity__
if (!inplace)
TRY(Core::System::pledge("stdio rpath"));
#endif
if (files.is_empty())
files.append("-");