summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-06 11:36:56 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-06 11:37:33 +0200
commit0d6597df2b1f53f00f3ed6ccc55ffa7541aa6201 (patch)
treebe20e7c10b0e41ee9482075a02e709adecafdad7 /AK
parent4c44c96bc6178d4cd6968a33baddd93c47cd10d4 (diff)
downloadserenity-0d6597df2b1f53f00f3ed6ccc55ffa7541aa6201.zip
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.
Diffstat (limited to 'AK')
-rw-r--r--AK/Stream.h2
1 files changed, 0 insertions, 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 };