AK: Remove KERNEL check from String

Since we no longer use `String` inside of the kernel code, we can drop
this `#ifndef`.
This commit is contained in:
Jelle Raaijmakers 2022-04-10 00:03:57 +02:00 committed by Andreas Kling
parent 9ed5a14af2
commit 1577a8ba42
Notes: sideshowbarker 2024-07-17 14:12:09 +09:00

View file

@ -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;