summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/ProjectBuilder.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-23 14:19:42 +0100
committerTim Flynn <trflynn89@pm.me>2022-12-23 10:38:14 -0500
commit9805f73704fb54c63ae80224cf48e70ac7913d2a (patch)
tree76b1bfdc970f7fc8bc31a9a771cb997e7d4172fb /Userland/DevTools/HackStudio/ProjectBuilder.cpp
parent355e761a029ab86f9cdfa4376d3e705f7457d951 (diff)
downloadserenity-9805f73704fb54c63ae80224cf48e70ac7913d2a.zip
LibCore: Remove the `force` parameter from File::remove
About half of the usages were not using `force` anyways, and the other half presumably just got confused about what "force" really means in this context (which is "ignore nonexistent files"). The only 'legitimate' user, which is `rm`, instead now handles this completely internally instead.
Diffstat (limited to 'Userland/DevTools/HackStudio/ProjectBuilder.cpp')
-rw-r--r--Userland/DevTools/HackStudio/ProjectBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/ProjectBuilder.cpp b/Userland/DevTools/HackStudio/ProjectBuilder.cpp
index 2c63b20f19..71089a49a4 100644
--- a/Userland/DevTools/HackStudio/ProjectBuilder.cpp
+++ b/Userland/DevTools/HackStudio/ProjectBuilder.cpp
@@ -133,7 +133,7 @@ ErrorOr<void> ProjectBuilder::initialize_build_directory()
auto cmake_file_path = LexicalPath::join(build_directory(), "CMakeLists.txt"sv).string();
if (Core::File::exists(cmake_file_path))
- MUST(Core::File::remove(cmake_file_path, Core::File::RecursionMode::Disallowed, false));
+ MUST(Core::File::remove(cmake_file_path, Core::File::RecursionMode::Disallowed));
auto cmake_file = TRY(Core::Stream::File::open(cmake_file_path, Core::Stream::OpenMode::Write));
TRY(cmake_file->write_entire_buffer(generate_cmake_file_content().bytes()));