1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibCore: Rename File to DeprecatedFile

As usual, this removes many unused includes and moves used includes
further down the chain.
This commit is contained in:
Tim Schumacher 2023-02-08 21:08:01 +01:00 committed by Linus Groh
parent 14951b92ca
commit d43a7eae54
193 changed files with 536 additions and 556 deletions

View file

@ -12,7 +12,7 @@
#include <AK/StringView.h>
#include <AK/Vector.h>
#include <LibCore/ConfigFile.h>
#include <LibCore/File.h>
#include <LibCore/DeprecatedFile.h>
#include <spawn.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
@ -231,7 +231,7 @@ int main()
return 1;
}
auto current_working_directory = Core::File::current_working_directory();
auto current_working_directory = Core::DeprecatedFile::current_working_directory();
if (current_working_directory.is_null())
return 1;
auto lexical_cwd = LexicalPath(current_working_directory);
@ -241,7 +241,7 @@ int main()
return 1;
}
if (!Core::File::exists("components.ini"sv)) {
if (!Core::DeprecatedFile::exists("components.ini"sv)) {
warnln("\e[31mError:\e[0m There is no 'components.ini' in the current working directory.");
warnln(" It can be generated by running CMake with 'cmake ../.. -G Ninja'");
return 1;