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

@ -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!";