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

@ -7,7 +7,6 @@
#include <LibTest/TestCase.h>
#include <AK/ByteString.h>
#include <AK/DeprecatedFlyString.h>
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <cstring>
@ -139,26 +138,6 @@ TEST_CASE(to_uppercase)
EXPECT(ByteString("AbC").to_uppercase() == "ABC");
}
TEST_CASE(flystring)
{
{
DeprecatedFlyString a("foo");
DeprecatedFlyString b("foo");
EXPECT_EQ(a.impl(), b.impl());
}
{
ByteString a = "foo";
DeprecatedFlyString b = a;
StringBuilder builder;
builder.append('f');
builder.append("oo"sv);
DeprecatedFlyString c = builder.to_byte_string();
EXPECT_EQ(a.impl(), b.impl());
EXPECT_EQ(a.impl(), c.impl());
}
}
TEST_CASE(replace)
{
ByteString test_string = "Well, hello Friends!";