Remove dead code. This code is not used since the action is not executed if a reboot is pending