Everywhere: Remove DeprecatedFlyString + any remaining references to it

This commit is contained in:
Kenneth Myhra 2025-03-30 16:56:32 +02:00 committed by Andreas Kling
commit 3131e6369f
Notes: github-actions[bot] 2025-04-01 10:50:54 +00:00
23 changed files with 13 additions and 298 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()))
{
}