summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Stream.h
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-07 21:34:00 +0100
committerSam Atkins <atkinssj@gmail.com>2022-12-08 12:52:14 +0000
commit2fc2025f49bb974a46afdf2242489ab0fe5a5cba (patch)
treee7565af2a4b432991c70180b9a7e7f90b2dc3e0b /Userland/Libraries/LibCore/Stream.h
parentbd272e638cc33e3282ffde1052eafd15cd00eac5 (diff)
downloadserenity-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.h1
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();