1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibRegex: Remove unused regex::Match::string and unused constructor

This shrinks regex::Match by 8 bytes and removes a member that needs
destruction.
This commit is contained in:
Andreas Kling 2025-04-13 17:41:31 +02:00 committed by Andreas Kling
parent 8eb16633fe
commit 9d47cc54f8
Notes: github-actions[bot] 2025-04-14 15:41:32 +00:00

View file

@ -476,9 +476,6 @@ private:
};
class Match final {
private:
Optional<FlyString> string;
public:
Match() = default;
~Match() = default;
@ -492,15 +489,6 @@ public:
{
}
Match(String string_, size_t const line_, size_t const column_, size_t const global_offset_)
: string(move(string_))
, view(string.value().bytes_as_string_view())
, line(line_)
, column(column_)
, global_offset(global_offset_)
{
}
Match(RegexStringView const view_, StringView capture_group_name_, size_t const line_, size_t const column_, size_t const global_offset_)
: view(view_)
, capture_group_name(MUST(FlyString::from_utf8(capture_group_name_)))