summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-08-07 10:29:37 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-07 15:57:51 +0200
commit3fb62e8c6342fb98c81707ff8f5f44902866748e (patch)
tree52e295c9e98840e0fb635d7719430a27e4f29ce7
parent5ba2022b8e67e28bf7dbd02a7eb5d19ba90aadb7 (diff)
downloadserenity-3fb62e8c6342fb98c81707ff8f5f44902866748e.zip
AK: Remove unnecessary clang-format off comments.
-rw-r--r--AK/Concepts.h4
-rw-r--r--AK/Stream.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/AK/Concepts.h b/AK/Concepts.h
index 4a2b594240..cb78982f0c 100644
--- a/AK/Concepts.h
+++ b/AK/Concepts.h
@@ -30,14 +30,10 @@
namespace AK::Concepts {
-// clang-format off
-
template<typename T>
concept Integral = IsIntegral<T>::value;
template<typename T>
concept FloatingPoint = IsFloatingPoint<T>::value;
-// clang-format on
-
}
diff --git a/AK/Stream.h b/AK/Stream.h
index 1c20891286..b946e90d05 100644
--- a/AK/Stream.h
+++ b/AK/Stream.h
@@ -62,8 +62,6 @@ public:
virtual bool discard_or_error(size_t count) = 0;
};
-// clang-format off
-
template<Concepts::Integral Integral>
InputStream& operator>>(InputStream& stream, Integral& value)
{
@@ -80,8 +78,6 @@ InputStream& operator>>(InputStream& stream, FloatingPoint& value)
}
#endif
-// clang-format on
-
inline InputStream& operator>>(InputStream& stream, bool& value)
{
stream.read_or_error({ &value, sizeof(value) });