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:
Ingo Weinhold
2007-10-14 00:07:03 +00:00
parent 7a5b0bb588
commit 08baf63a9f
5 changed files with 96 additions and 238 deletions
+4 -4
View File
@@ -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;
-2
View File
@@ -142,8 +142,6 @@ public:
private:
class Delegate;
class ImmutableDelegate;
class MutableDelegate;
BPartition();
BPartition(const BPartition &);