From 8801c9ccaeaab68174312cf025bce771e2ea77df Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 17 Nov 2023 21:49:40 -0600 Subject: Qt UI: Remove "Use available space" option Way too buggy in its present state, unfortunately. Needs a lot more logic. Closes: #377, #376 --- ui/qt5/horizonwizard.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'ui/qt5/horizonwizard.cc') 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) { -- cgit v1.2.3-70-g09d2