Remove some unused variables - leave the side effect

This commit is contained in:
Richard Cohen committed 2023-02-06 14:19:29 +00:00
1 parent ea2d3be217
commit c819b03a17
5 files changed
+11 -11

No files matched your search

+4 -4
View File
@@ -452,10 +452,10 @@ gnc_plugin_page_invoice_action_update (GncPluginPage *plugin_page,
for (gint i = 0; (action_list[i].action_name != NULL); i++)
{
gboolean found = gnc_main_window_update_menu_for_action (window,
action_list[i].action_name,
_(action_list[i].label),
_(action_list[i].tooltip));
gnc_main_window_update_menu_for_action (window,
action_list[i].action_name,
_(action_list[i].label),
_(action_list[i].tooltip));
tool_item = gnc_main_window_toolbar_find_tool_item (window,
action_list[i].action_name);
+4 -4
View File
@@ -1232,10 +1232,10 @@ gnc_plugin_page_report_menu_update (GncPluginPage *plugin_page,
for (gint i = 0; (tooltip_list[i].action_name != nullptr); i++)
{
gboolean found = gnc_main_window_update_menu_for_action (window,
tooltip_list[i].action_name,
_(tooltip_list[i].label),
_(tooltip_list[i].tooltip));
gnc_main_window_update_menu_for_action (window,
tooltip_list[i].action_name,
_(tooltip_list[i].label),
_(tooltip_list[i].tooltip));
tool_item = gnc_main_window_toolbar_find_tool_item (window,
tooltip_list[i].action_name);
+1 -1
View File
@@ -360,7 +360,7 @@ GUID::is_valid_guid (std::string const & str)
try
{
static boost::uuids::string_generator strgen;
auto a = strgen (str);
strgen (str);
return true;
}
catch (...)
+1 -1
View File
@@ -73,7 +73,7 @@ TEST (GncGUID, from_string)
bool fail = false;
try
{
auto guid = gnc::GUID::from_string (bogus);
gnc::GUID::from_string (bogus);
}
catch (gnc::guid_syntax_exception const &)
{
+1 -1
View File
@@ -63,7 +63,7 @@ void QofSessionMockBackend::load (QofBook *book, QofBackendLoadType)
if (load_error)
set_error(ERR_BACKEND_NO_BACKEND);
else
auto root = gnc_account_create_root (book);
gnc_account_create_root (book);
data_loaded = true;
}