diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-07 21:34:00 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-12-08 12:52:14 +0000 |
commit | 2fc2025f49bb974a46afdf2242489ab0fe5a5cba (patch) | |
tree | e7565af2a4b432991c70180b9a7e7f90b2dc3e0b /Userland/Libraries/LibCore/Stream.h | |
parent | bd272e638cc33e3282ffde1052eafd15cd00eac5 (diff) | |
download | serenity-2fc2025f49bb974a46afdf2242489ab0fe5a5cba.zip |
LibCore: Move `Core::Stream::File::exists()` to `Core::File`
`Core::Stream::File` shouldn't hold any utility methods that are
unrelated to constructing a `Core::Stream`, so let's just replace the
existing `Core::File::exists` with the nicer looking implementation.
Diffstat (limited to 'Userland/Libraries/LibCore/Stream.h')
-rw-r--r-- | Userland/Libraries/LibCore/Stream.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/Stream.h b/Userland/Libraries/LibCore/Stream.h index f4048f386a..87e983c17d 100644 --- a/Userland/Libraries/LibCore/Stream.h +++ b/Userland/Libraries/LibCore/Stream.h @@ -220,7 +220,6 @@ class File final : public SeekableStream { public: static ErrorOr<NonnullOwnPtr<File>> open(StringView filename, OpenMode, mode_t = 0644); static ErrorOr<NonnullOwnPtr<File>> adopt_fd(int fd, OpenMode, ShouldCloseFileDescriptor = ShouldCloseFileDescriptor::Yes); - static bool exists(StringView filename); static ErrorOr<NonnullOwnPtr<File>> standard_input(); static ErrorOr<NonnullOwnPtr<File>> standard_output(); |