mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb/IDB: Resolve FIXME regarding removing from indecies
This commit is contained in:
parent
46ecf239c4
commit
13674c1b32
Notes:
github-actions[bot]
2025-05-14 15:18:50 +00:00
Author: https://github.com/stelar7
Commit: 13674c1b32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4727
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/shannonbooth
3 changed files with 12 additions and 1 deletions
|
@ -122,4 +122,11 @@ void Index::store_a_record(IndexRecord const& record)
|
|||
});
|
||||
}
|
||||
|
||||
void Index::remove_records_with_value_in_range(GC::Ref<IDBKeyRange> range)
|
||||
{
|
||||
m_records.remove_all_matching([&](auto const& record) {
|
||||
return range->is_in_range(record.value);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue