mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
Everywhere: Remove unused local variables and lambda captures
This commit is contained in:
parent
5f7f063919
commit
ca06fd658d
10 changed files with 10 additions and 15 deletions
|
@ -295,7 +295,7 @@ void BrowserWindow::build_menus()
|
|||
};
|
||||
|
||||
m_disable_search_engine_action = GUI::Action::create_checkable(
|
||||
"Disable", [this](auto&) {
|
||||
"Disable", [](auto&) {
|
||||
g_search_engine = {};
|
||||
auto config = Core::ConfigFile::get_for_app("Browser");
|
||||
config->write_entry("Preferences", "SearchEngine", g_search_engine);
|
||||
|
|
|
@ -52,8 +52,6 @@ static TitleAndText build_backtrace(const CoreDump::Reader& coredump, const ELF:
|
|||
builder.append('\n');
|
||||
};
|
||||
|
||||
auto& backtrace_entries = backtrace.entries();
|
||||
|
||||
if (metadata.contains("assertion"))
|
||||
prepend_metadata("assertion", "ASSERTION FAILED: {}");
|
||||
else if (metadata.contains("pledge_violation"))
|
||||
|
|
|
@ -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