addon/mg: Drop superfluous NULL pointer check

update_all_button's value is obtained from operator new, which will
throw if the allocation fails, so it can never be NULL in subsequent
statements.

Found by coverity.
This commit is contained in:
Ignacio R. Morelle 2014-11-18 23:35:52 -03:00
parent 01c3d7c38d
commit ed860bc9ba

View file

@ -797,9 +797,7 @@ void show_addons_manager_dialog(display& disp, addons_client& client, addons_lis
if(dummy_addons_list) {
filter_box->hide(true);
description_button->enable(false);
if(update_all_button) {
update_all_button->enable(false);
}
update_all_button->enable(false);
addons_list_menu->hide(true);
}