diff --git a/AK/Span.h b/AK/Span.h index a4daf5c4ad..ec62904313 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -161,23 +161,12 @@ public: } ALWAYS_INLINE void copy_to(Span other) const - { - ASSERT(other.size() >= size()); - __builtin_memcpy(other.data(), data(), sizeof(T) * size()); - } - - ALWAYS_INLINE void copy_trimmed_to(Span other) const - { - __builtin_memcpy(other.data(), data(), sizeof(T) * min(size(), other.size())); - } - - ALWAYS_INLINE void move_to(Span other) const { ASSERT(other.size() >= size()); __builtin_memmove(other.data(), data(), sizeof(T) * size()); } - ALWAYS_INLINE void move_trimmed_to(Span other) const + ALWAYS_INLINE void copy_trimmed_to(Span other) const { __builtin_memmove(other.data(), data(), sizeof(T) * min(size(), other.size())); }