Everywhere: Remove DeprecatedFlyString + any remaining references to it

This reverts commit 7c32d1e8a5.
This commit is contained in:
Kenneth Myhra 2025-04-01 16:49:30 +02:00 committed by Andreas Kling
commit 82a2ae99c8
Notes: github-actions[bot] 2025-04-02 09:44:09 +00:00
22 changed files with 13 additions and 297 deletions

View file

@ -6,7 +6,7 @@
#include <AK/ByteBuffer.h>
#include <AK/ByteString.h>
#include <AK/DeprecatedFlyString.h>
#include <AK/FlyString.h>
#include <AK/Format.h>
#include <AK/Function.h>
#include <AK/StdLibExtras.h>
@ -16,11 +16,6 @@
namespace AK {
bool ByteString::operator==(DeprecatedFlyString const& fly_string) const
{
return m_impl == fly_string.impl() || view() == fly_string.view();
}
bool ByteString::operator==(ByteString const& other) const
{
return m_impl == other.impl() || view() == other.view();
@ -337,8 +332,8 @@ ByteString escape_html_entities(StringView html)
return builder.to_byte_string();
}
ByteString::ByteString(DeprecatedFlyString const& string)
: m_impl(string.impl())
ByteString::ByteString(FlyString const& string)
: m_impl(*StringImpl::create(string.bytes()))
{
}