Decided that BPartition::ImmutableDelegate would basically be a big
collection of no-op methods, which could as well be implemented in BPartition itself. This makes the Delegate hierarchy unnecessary: MutableDelegate becomes Delegate, and we save a few casts as a side effect. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
private:
|
||||
BMutablePartition(
|
||||
BPartition::MutableDelegate* delegate);
|
||||
BPartition::Delegate* delegate);
|
||||
~BMutablePartition();
|
||||
|
||||
status_t Init(const user_partition_data* partitionData,
|
||||
@@ -81,11 +81,11 @@ private:
|
||||
const user_partition_data* PartitionData() const;
|
||||
|
||||
private:
|
||||
friend class BPartition::MutableDelegate;
|
||||
friend class BPartition::Delegate;
|
||||
|
||||
BPartition::MutableDelegate* GetDelegate() const;
|
||||
BPartition::Delegate* GetDelegate() const;
|
||||
|
||||
BPartition::MutableDelegate* fDelegate;
|
||||
BPartition::Delegate* fDelegate;
|
||||
user_partition_data* fData;
|
||||
BMutablePartition* fParent;
|
||||
BList fChildren;
|
||||
|
||||
@@ -142,8 +142,6 @@ public:
|
||||
|
||||
private:
|
||||
class Delegate;
|
||||
class ImmutableDelegate;
|
||||
class MutableDelegate;
|
||||
|
||||
BPartition();
|
||||
BPartition(const BPartition &);
|
||||
|
||||
Reference in New Issue
Block a user