From a8206655ca931de3a46a846a9f0a3ff1d88d33e1 Mon Sep 17 00:00:00 2001 From: Ancor Gonzalez Sosa Date: Mon, 26 Feb 2018 13:28:58 +0100 Subject: [PATCH] Remove dead code --- .../clients/inst_system_analysis.rb | 40 ++++++------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/src/lib/installation/clients/inst_system_analysis.rb b/src/lib/installation/clients/inst_system_analysis.rb index c17d832e4..168907385 100644 --- a/src/lib/installation/clients/inst_system_analysis.rb +++ b/src/lib/installation/clients/inst_system_analysis.rb @@ -68,8 +68,6 @@ def main # always return `back when came from the previous dialog return :back if GetInstArgs.going_back - @found_controllers = true - @packager_initialized = false Wizard.SetContents(_("Analyzing the Computer"), Empty(), "", false, false) @@ -197,37 +195,23 @@ def ActionHDDProbe end if devicegraph.empty? - if @found_controllers || Arch.s390 - if !(Mode.autoinst || Mode.autoupgrade) - # pop-up error report - Report.Error( - Builtins.sformat( - _( - "No hard disks were found for the installation.\n" \ - "Please check your hardware!\n" \ - "%1\n" - ), - drivers_info - ) - ) - else - Report.Warning( - _( - "No hard disks were found for the installation.\n" \ - "During an automatic installation, they might be detected later.\n" \ - "(especially on S/390 or iSCSI systems)\n" - ) + if Mode.auto + Report.Warning( + # TRANSLATORS: Error pop-up + _( + "No hard disks were found for the installation.\n" \ + "During an automatic installation, they might be detected later.\n" \ + "(especially on S/390 or iSCSI systems)\n" ) - end + ) else - # pop-up error report Report.Error( Builtins.sformat( + # TRANSLATORS: Error pop-up _( - "No hard disks and no hard disk controllers were\n" \ - "found for the installation.\n" \ - "Check your hardware.\n" \ - "%1\n" + "No hard disks were found for the installation.\n" \ + "Please check your hardware!\n" \ + "%1\n" ), drivers_info )