From 37459cb2762fc8882d7c10578df7e4597ebf4a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 24 Sep 2024 09:23:31 -0700 Subject: [PATCH] Simplify PartitionBlock even further --- src/Views/PartitioningView.vala | 2 +- src/Widgets/PartitionBlock.vala | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Views/PartitioningView.vala b/src/Views/PartitioningView.vala index 7bfe6a782..d5903ab67 100644 --- a/src/Views/PartitioningView.vala +++ b/src/Views/PartitioningView.vala @@ -213,7 +213,7 @@ public class Installer.PartitioningView : AbstractInstallerView { private DiskBar get_disk_bar (InstallerDaemon.Disk disk, bool lvm) { var partitions = new Gee.ArrayList (); foreach (unowned InstallerDaemon.Partition part in disk.partitions) { - var partition = new PartitionBlock (part, disk.device_path, disk.sector_size); + var partition = new PartitionBlock (part); if (part.filesystem == LUKS) { partition.menu = new DecryptMenu (part.device_path); diff --git a/src/Widgets/PartitionBlock.vala b/src/Widgets/PartitionBlock.vala index f3aeed35c..390a121fc 100644 --- a/src/Widgets/PartitionBlock.vala +++ b/src/Widgets/PartitionBlock.vala @@ -29,15 +29,11 @@ public class Installer.PartitionBlock : Adw.Bin { } public InstallerDaemon.Partition partition { get; construct; } - public string parent_path { get; construct; } public string? volume_group { get; private set; } - public PartitionBlock (InstallerDaemon.Partition partition, string parent_path, uint64 sector_size) { - Object ( - parent_path: parent_path, - partition: partition - ); + public PartitionBlock (InstallerDaemon.Partition partition) { + Object (partition: partition); } class construct {