mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +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:
parent
8eb16633fe
commit
9d47cc54f8
Notes:
github-actions[bot]
2025-04-14 15:41:32 +00:00
Author: https://github.com/awesomekling
Commit: 9d47cc54f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4351
1 changed files with 0 additions and 12 deletions
|
@ -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_)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue