diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-06 11:36:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-06 11:37:33 +0200 |
commit | 0d6597df2b1f53f00f3ed6ccc55ffa7541aa6201 (patch) | |
tree | be20e7c10b0e41ee9482075a02e709adecafdad7 | |
parent | 4c44c96bc6178d4cd6968a33baddd93c47cd10d4 (diff) | |
download | serenity-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.
-rw-r--r-- | AK/Stream.h | 2 |
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 }; |