mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:27:39 +00:00
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.
This commit is contained in:
parent
355e761a02
commit
9805f73704
10 changed files with 22 additions and 20 deletions
|
@ -93,7 +93,7 @@ public:
|
|||
static ErrorOr<DeprecatedString> read_link(DeprecatedString const& link_path);
|
||||
static ErrorOr<void> link_file(DeprecatedString const& dst_path, DeprecatedString const& src_path);
|
||||
|
||||
static ErrorOr<void> remove(DeprecatedString const& path, RecursionMode, bool force);
|
||||
static ErrorOr<void> remove(DeprecatedString const& path, RecursionMode);
|
||||
|
||||
virtual bool open(OpenMode) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue