mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
AK: Remove StringBuilder's UseInlineCapacityOnly feature
This feature is unused in Ladybird and will complicate an upcoming patch to hand-off StringBuilder's memory to String.
This commit is contained in:
parent
33207174a9
commit
af220af8bf
Notes:
github-actions[bot]
2024-07-20 07:31:48 +00:00
Author: https://github.com/trflynn89
Commit: af220af8bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/724
2 changed files with 12 additions and 35 deletions
|
@ -23,12 +23,6 @@ public:
|
|||
static ErrorOr<StringBuilder> create(size_t initial_capacity = inline_capacity);
|
||||
|
||||
explicit StringBuilder(size_t initial_capacity = inline_capacity);
|
||||
|
||||
enum class UseInlineCapacityOnly {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
explicit StringBuilder(UseInlineCapacityOnly use_inline_capacity_only);
|
||||
~StringBuilder() = default;
|
||||
|
||||
ErrorOr<void> try_append(StringView);
|
||||
|
@ -106,7 +100,6 @@ private:
|
|||
u8* data();
|
||||
u8 const* data() const;
|
||||
|
||||
UseInlineCapacityOnly m_use_inline_capacity_only { UseInlineCapacityOnly::No };
|
||||
Detail::ByteBuffer<inline_capacity> m_buffer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue