Everywhere: Remove all KERNEL #defines

This commit is contained in:
Tim Ledbetter 2024-06-17 23:12:53 +01:00 committed by Andreas Kling
commit 5ca2f4dfd7
Notes: sideshowbarker 2024-07-16 23:17:55 +09:00
73 changed files with 116 additions and 808 deletions

View file

@ -7,14 +7,11 @@
#pragma once
#include <AK/ByteString.h>
#include <AK/Format.h>
#include <AK/StringView.h>
#include <AK/Types.h>
#ifndef KERNEL
# include <AK/ByteString.h>
#endif
namespace AK {
class Utf8View;
@ -71,14 +68,12 @@ public:
{
}
#ifndef KERNEL
explicit Utf8View(ByteString& string)
: m_string(string.view())
{
}
explicit Utf8View(ByteString&&) = delete;
#endif
enum class AllowSurrogates {
Yes,
@ -238,7 +233,6 @@ private:
mutable bool m_have_length { false };
};
#ifndef KERNEL
class DeprecatedStringCodePointIterator {
public:
Optional<u32> next()
@ -272,7 +266,6 @@ private:
ByteString m_string;
Utf8CodePointIterator m_it;
};
#endif
template<>
struct Formatter<Utf8View> : Formatter<StringView> {
@ -282,9 +275,7 @@ struct Formatter<Utf8View> : Formatter<StringView> {
}
#if USING_AK_GLOBALLY
# ifndef KERNEL
using AK::DeprecatedStringCodePointIterator;
# endif
using AK::Utf8CodePointIterator;
using AK::Utf8View;
#endif