From e4c125c519ced12ac7116fffd7cbec6ffc6b3cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 9 Oct 2017 21:13:58 +0100 Subject: [PATCH] Do not over encapsulate Partition methods. This caused more trouble than helped. There is no reason not to allow e.g. settings new flags on partition or changing it's path. --- src/core/partition.h | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/core/partition.h b/src/core/partition.h index 502f0d3..155bfd8 100644 --- a/src/core/partition.h +++ b/src/core/partition.h @@ -73,36 +73,6 @@ class QTextStream; */ class LIBKPMCORE_EXPORT Partition : public PartitionNode { - friend class PartitionTable; - friend class OperationStack; - friend class Device; - friend class PartitionNode; - friend class CoreBackendPartitionTable; - friend class PartitionAlignment; - - friend class PartResizerWidget; - friend class ResizeDialog; - friend class InsertDialog; - friend class NewDialog; - friend class EditMountPointDialog; - friend class PartPropsDialog; - friend class SizeDialogBase; - - friend class CreateFileSystemOperation; - friend class RestoreOperation; - friend class SetPartFlagsOperation; - friend class CopyOperation; - friend class NewOperation; - friend class ResizeOperation; - - friend class SetPartGeometryJob; - friend class CreatePartitionJob; - friend class SetPartFlagsJob; - friend class RestoreFileSystemJob; - - friend class DeactivateVolumeGroupJob; - - friend QTextStream& operator<<(QTextStream& stream, const Partition& p); public: /** A Partition state -- where did it come from? */ @@ -235,7 +205,6 @@ public: m_UUID = s; /**< @param s the new UUID */ } -protected: void append(Partition* p) override { m_Children.append(p); }