mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +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
|
@ -699,19 +699,19 @@ NonnullRefPtr<GUI::Widget> build_graphs_tab()
|
|||
memory_graph.set_stack_values(true);
|
||||
memory_graph.set_value_format(0, {
|
||||
.graph_color_role = ColorRole::SyntaxComment,
|
||||
.text_formatter = [&memory_graph](int value) {
|
||||
.text_formatter = [](int value) {
|
||||
return String::formatted("Committed: {} KiB", value);
|
||||
},
|
||||
});
|
||||
memory_graph.set_value_format(1, {
|
||||
.graph_color_role = ColorRole::SyntaxPreprocessorStatement,
|
||||
.text_formatter = [&memory_graph](int value) {
|
||||
.text_formatter = [](int value) {
|
||||
return String::formatted("Allocated: {} KiB", value);
|
||||
},
|
||||
});
|
||||
memory_graph.set_value_format(2, {
|
||||
.graph_color_role = ColorRole::SyntaxPreprocessorValue,
|
||||
.text_formatter = [&memory_graph](int value) {
|
||||
.text_formatter = [](int value) {
|
||||
return String::formatted("Kernel heap: {} KiB", value);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue