From 1577a8ba42a13b71fb6e22f91e0bebf9677d243d Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 10 Apr 2022 00:03:57 +0200 Subject: [PATCH] AK: Remove `KERNEL` check from `String` Since we no longer use `String` inside of the kernel code, we can drop this `#ifndef`. --- AK/String.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/AK/String.h b/AK/String.h index 9160105a93..674cfdb6cb 100644 --- a/AK/String.h +++ b/AK/String.h @@ -124,7 +124,6 @@ public: [[nodiscard]] bool is_whitespace() const { return StringUtils::is_whitespace(*this); } -#ifndef KERNEL [[nodiscard]] String trim(StringView characters, TrimMode mode = TrimMode::Both) const { auto trimmed_view = StringUtils::trim(view(), characters, mode); @@ -140,7 +139,6 @@ public: return *this; return trimmed_view; } -#endif [[nodiscard]] bool equals_ignoring_case(StringView) const;