mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Everywhere: Remove all KERNEL #define
s
This commit is contained in:
parent
de99dd2c89
commit
5ca2f4dfd7
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/tcl3
Commit: 5ca2f4dfd7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/195
73 changed files with 116 additions and 808 deletions
|
@ -226,8 +226,6 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
|
||||
template<typename U = T>
|
||||
void insert(size_t index, U&& value)
|
||||
requires(CanBePlacedInsideVector<U>)
|
||||
|
@ -252,8 +250,6 @@ public:
|
|||
MUST(try_extend(other));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
ALWAYS_INLINE void append(T&& value)
|
||||
{
|
||||
if constexpr (contains_reference)
|
||||
|
@ -268,12 +264,10 @@ public:
|
|||
MUST(try_append(T(value)));
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
void append(StorageType const* values, size_t count)
|
||||
{
|
||||
MUST(try_append(values, count));
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename U = T>
|
||||
ALWAYS_INLINE void unchecked_append(U&& value)
|
||||
|
@ -296,7 +290,6 @@ public:
|
|||
m_size += count;
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
template<class... Args>
|
||||
void empend(Args&&... args)
|
||||
requires(!contains_reference)
|
||||
|
@ -321,8 +314,6 @@ public:
|
|||
MUST(try_prepend(values, count));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// FIXME: What about assigning from a vector with lower inline capacity?
|
||||
Vector& operator=(Vector&& other)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue