diff options
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r-- | ui/qt5/horizonwizard.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc index 97b2939..8cd1941 100644 --- a/ui/qt5/horizonwizard.cc +++ b/ui/qt5/horizonwizard.cc @@ -608,19 +608,8 @@ QString HorizonWizard::toHScript() { if(erase) { lines << eraseDiskForArch(chosen_disk, arch, subarch); } else { -#ifdef HAS_INSTALL_ENV - Disk *disk = nullptr; - for(auto &d_iter : disks) { - if(d_iter.node() == chosen_disk) { - disk = &d_iter; - break; - } - } - Q_ASSERT(disk != nullptr); - start = disk->partitions().size() + 1; -#else /* !HAS_INSTALL_ENV */ + /* This branch will be taken when "use available space" is back. */ Q_ASSERT(false); -#endif /* HAS_INSTALL_ENV */ } if(this->grub) { |