mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
Everywhere: Remove unused local variables and lambda captures
This commit is contained in:
parent
5f7f063919
commit
ca06fd658d
Notes:
sideshowbarker
2024-07-18 10:06:40 +09:00
Author: https://github.com/BertalanD
Commit: ca06fd658d
Pull-request: https://github.com/SerenityOS/serenity/pull/8470
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gunnarbeutner ✅
10 changed files with 10 additions and 15 deletions
|
@ -486,7 +486,7 @@ Optional<DebugSession::SymbolicationResult> DebugSession::symbolicate(FlatPtr ad
|
|||
Optional<DebugInfo::SourcePositionAndAddress> DebugSession::get_address_from_source_position(String const& file, size_t line) const
|
||||
{
|
||||
Optional<DebugInfo::SourcePositionAndAddress> result;
|
||||
for_each_loaded_library([this, file, line, &result](auto& lib) {
|
||||
for_each_loaded_library([file, line, &result](auto& lib) {
|
||||
// The loader contains its own definitions for LibC symbols, so we don't want to include it in the search.
|
||||
if (lib.name == "Loader.so")
|
||||
return IterationDecision::Continue;
|
||||
|
|
|
@ -241,7 +241,7 @@ void DwarfInfo::build_cached_dies() const
|
|||
m_cached_dies_by_range.insert(range.start_address, DIEAndRange { die, range });
|
||||
m_cached_dies_by_offset.insert(die.offset(), die);
|
||||
};
|
||||
auto get_ranges_of_die = [this](DIE const& die) -> Vector<DIERange> {
|
||||
auto get_ranges_of_die = [](DIE const& die) -> Vector<DIERange> {
|
||||
// TODO support DW_AT_ranges (appears when range is non-contiguous)
|
||||
|
||||
auto start = die.get_attribute(Attribute::LowPc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue