mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
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:
parent
9ed5a14af2
commit
1577a8ba42
Notes:
sideshowbarker
2024-07-17 14:12:09 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/1577a8ba42 Pull-request: https://github.com/SerenityOS/serenity/pull/13598 Reviewed-by: https://github.com/Quaker762 ✅
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue