mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove some unused variables - leave the side effect
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 (...)
|
||||
|
||||
@@ -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 &)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user