mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
LibJS+LibWeb: Remove more uses of DeprecatedFlyString
This commit is contained in:
parent
46a5710238
commit
f1914893e9
Notes:
github-actions[bot]
2025-03-24 22:28:20 +00:00
Author: https://github.com/awesomekling
Commit: f1914893e9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067
Reviewed-by: https://github.com/trflynn89
12 changed files with 10 additions and 22 deletions
|
@ -1336,8 +1336,6 @@ public:
|
|||
Operand base() const { return m_base; }
|
||||
Operand property() const { return m_property; }
|
||||
|
||||
Optional<DeprecatedFlyString const&> base_identifier(Bytecode::Interpreter const&) const;
|
||||
|
||||
private:
|
||||
Operand m_dst;
|
||||
Operand m_base;
|
||||
|
|
|
@ -338,7 +338,6 @@ private:
|
|||
NonnullRefPtr<SourceCode const> m_source_code;
|
||||
Vector<Position> m_rule_starts;
|
||||
ParserState m_state;
|
||||
DeprecatedFlyString m_filename;
|
||||
Vector<ParserState> m_saved_state;
|
||||
HashMap<size_t, TokenMemoization> m_token_memoizations;
|
||||
Program::Type m_program_type;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Runtime/PropertyKey.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Try.h>
|
||||
#include <AK/TypeCasts.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibJS/Bytecode/BasicBlock.h>
|
||||
#include <LibJS/Forward.h>
|
||||
|
|
|
@ -229,11 +229,6 @@ GC::Ref<PrimitiveString> PrimitiveString::create(VM& vm, ByteString string)
|
|||
return *it->value;
|
||||
}
|
||||
|
||||
GC::Ref<PrimitiveString> PrimitiveString::create(VM& vm, DeprecatedFlyString const& string)
|
||||
{
|
||||
return create(vm, ByteString { string });
|
||||
}
|
||||
|
||||
GC::Ref<PrimitiveString> PrimitiveString::create(VM& vm, PrimitiveString& lhs, PrimitiveString& rhs)
|
||||
{
|
||||
// We're here to concatenate two strings into a new rope string.
|
||||
|
|
|
@ -29,7 +29,6 @@ public:
|
|||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, String);
|
||||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, FlyString const&);
|
||||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, ByteString);
|
||||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, DeprecatedFlyString const&);
|
||||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, PrimitiveString&, PrimitiveString&);
|
||||
[[nodiscard]] static GC::Ref<PrimitiveString> create(VM&, StringView);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue