From 0d6597df2b1f53f00f3ed6ccc55ffa7541aa6201 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Aug 2020 11:36:56 +0200 Subject: [PATCH] AK: Remove Stream::operator bool() This was only used in one place, and that caused a bug, so I'm removing this for now since there are no more uses. --- AK/Stream.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/AK/Stream.h b/AK/Stream.h index 7a59b9b551..1c20891286 100644 --- a/AK/Stream.h +++ b/AK/Stream.h @@ -45,8 +45,6 @@ public: bool handle_error() { return exchange(m_error, false); } - operator bool() const { return !m_error && !m_fatal; } - protected: mutable bool m_error { false }; mutable bool m_fatal { false };