summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibCore/Stream.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCore/Stream.h b/Userland/Libraries/LibCore/Stream.h
index 4fae0b02ad..25f5f6c580 100644
--- a/Userland/Libraries/LibCore/Stream.h
+++ b/Userland/Libraries/LibCore/Stream.h
@@ -690,10 +690,6 @@ public:
if (buffer.is_empty())
return Error::from_errno(ENOBUFS);
- // We fill the buffer through can_read_line.
- if (!TRY(can_read_line()))
- return Bytes {};
-
auto const candidate = TRY(find_and_populate_until_any_of(candidates, buffer.size()));
if (stream().is_eof()) {